Team, trying the same setup but unable to access the cluster,
-
teleport deployed in ec2 instance with Teleport Base AMI from the AWS marketplace.
-
AWS eks cluster using EKSCTL command cli
-
Followed the same Process as mentioned here,
https://gravitational.com/teleport/docs/aws-oss-guide/#using-teleport-with-eks
-
Able to login from the UI but not from the ec2-instance’s command line as its running on a different server and the url for the brower says to http://127.0.0.1/{token}
-
have added the https certs as mentioned in eks teleport port ( certs using letsencrypt) but still the brower is not able to recognise and its giving self signed certs.
proxy_service:
enabled: "yes"
listen_addr: 0.0.0.0:3023
web_listen_addr: 0.0.0.0:3080
tunnel_listen_addr: 0.0.0.0:3024
public_addr: my-url:3080
https_key_file: /etc/letsencrypt/live/my-url/privkey.pem
https_cert_file: /etc/letsencrypt/live/my-url/fullchain.pem
-
Teleport version: 4.3.0
From the UI,
I’m able to login to the proxy server and when i try to do kubectl get pods
it give me below error,
Error from server (Forbidden): pods is forbidden: User "system:serviceaccount:teleport:teleport-sa" cannot list resource "pods" in API group "" in the namespace "default"
But when i use the “–as=teleport” i’m able to get the resources and when i add “–as-groups=system:masters” i’m able to access the whole cluster.
kubectl get ns --as=teleport --as-group=system:masters
NAME STATUS AGE
default Active 21h
kube-node-lease Active 21h
kube-public Active 21h
kube-system Active 21h
teleport Active 19h
My github.yml
kind: github
version: v3
metadata:
name: github
spec:
client_id: {id}
client_secret: {tokrn}
display: Github
redirect_url: https://my-url:3080/v1/webapi/github/callback
teams_to_logins:
- kubernetes_groups:
- system:masters
- teleport-group
logins:
- github
- ec2-user
- teleport
organization: abc-project
team: devops
When i try tsh login from my local system,
login --proxy=my-url:3080 --auth=github --insecure
If browser window does not open automatically, open it by clicking on the link:
http://127.0.0.1:46865/token
> Profile URL: https://my-url:3080
Logged in as: Gangaram
Cluster: my-cluster
Roles: admin*
Logins: github, ec2-user, teleport
Valid until: 2020-10-27 21:33:35 +0530 IST [valid for 12h0m0s]
Extensions: permit-agent-forwarding, permit-port-forwarding, permit-pty
RBAC is only available in Teleport Enterprise
https://gravitational.com/teleport/docs/enterprise