Connect Client
You can use the Teleport Connect client or the tsh CLI tool to access your Kubernetes clusters managed by Teleport.
Prerequisites
- Teleport Connect installed on your machine or
tshCLI tool installed. Refer to the Client Installation guide for installation instructions. kubectlinstalled on your machine. You can download it from the official Kubernetes documentation.- You must be in a Teleport Role that has been granted access to the Kubernetes clusters you want to connect to.
Accessing a Kubernetes Cluster with Teleport Connect
Launch Teleport Connect
Open the Teleport Connect application from your applications menu or desktop shortcut.
Log in to your Teleport Cluster
Use the Teleport Connect interface to log in to your Teleport cluster using your credentials.

Access Kubernetes
Once logged in, search for the Kubernetes cluster you want to access and click on Connect to open an interactive shell.

Using kubectl
Now you can use kubectl commands to interact with your Kubernetes cluster:
kubectl get pods
kubectl get servicesAccssing a Kubernetes Cluster with tsh CLI
Log in to your Teleport Cluster
Use the tsh login command to log in to your Teleport cluster:
tsh login --proxy=<your-teleport-proxy> --user=<your-username> --auth=localList Available Kubernetes Clusters
Use the tsh kube ls command to list all available Kubernetes clusters you have access
tsh kube lsAccess Kubernetes Cluster
Use the tsh kube login command to access a specific Kubernetes cluster:
tsh kube login <kube-cluster-name>Using kubectl
Now you can use kubectl commands to interact with your Kubernetes cluster:
kubectl get pods
kubectl get services