teleport-cluster
by jlucidar
Teleport is an access platform for your infrastructure
About this chart
Teleport Cluster
This chart sets up a Teleport cluster composed of at least 1 Proxy instance and 1 Auth instance. When applicable, the chart will default to 2 pods to provide high-availability.
Important Notices
- The chart version follows the Teleport version. e.g. chart v10.x can run Teleport v10.x and v11.x, but is not compatible with Teleport 9.x
- Teleport does mutual TLS to authenticate clients. Establishing mTLS through a L7
LoadBalancer, like a Kubernetes
Ingressrequires ALPN support. Exposing Teleport through aServicewith typeLoadBalanceris still recommended because its the most flexible and least complex setup.
Getting Started
Single-node example
To install Teleport in a separate namespace and provision a web certificate using Let's Encrypt, run:
$ helm install teleport/teleport-cluster \
--set acme=true \
--set [email protected] \
--set clusterName=teleport.example.com\
--create-namespace \
--namespace=teleport-cluster \
./teleport-cluster/
Finally, configure the DNS for teleport.example.com to point to the newly created LoadBalancer.
Note: this guide uses the built-in ACME client to get certificates.
In this setup, Teleport nodes cannot be replicated. If you want to run multiple
Teleport replicas, you must provide a certificate through tls.existingSecretName
or by installing cert-manager and setting the highAvailability.certManager.* values.
Replicated setup guides
- Running an HA Teleport cluster in Kubernetes using an AWS EKS Cluster
- Running an HA Teleport cluster in Kubernetes using an Google Cloud GKE cluster
- Running an HA Teleport cluster in Kubernetes using an Azure AKS cluster
- Running a Teleport cluster in Kubernetes with a custom Teleport config
Creating first user
The first user can be created by executing a command in one of the auth pods.
kubectl exec it -n teleport-cluster statefulset/teleport-cluster-auth -- tctl users add my-username --roles=editor,auditor,access
The command should output a registration link to finalize the user creation.
Uninstalling
helm uninstall --namespace teleport-cluster teleport-cluster
Documentation
See https://goteleport.com/docs/zero-trust-access/deploy-a-cluster/helm-deployments/ for guides on setting up HA Teleport clusters in EKS or GKE, plus a comprehensive chart reference.
Contributing to the chart
Please read CONTRIBUTING.md before raising a pull request to this chart.
Deploy teleport-cluster with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has teleport-cluster on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartteleport-cluster is pinned at v19.0.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply