Commit Graph
8 Commits
Author SHA1 Message Date
Tiago Silva 76d6dc8215 Fix 'get-kubeconfig.sh' to work with Kubernetes v1.24+ (#15612)
Kubernetes v1.24 enabled, by default, the LegacyServiceAccountTokenNoAutoGeneration feature.
This feature prevents Secrets containing service account tokens from being automatically created for every ServiceAccount.
Instead, when enabled, it requires a manual action for creating the Secret bound to the SA.

Fixes #15611
2022-08-17 19:48:28 +01:00
Andrew Lytvynov 9c25440e8d k8s: add merge-kubeconfigs.sh script (#5677)
This script merges multiple kubeconfigs created with `get-kubeconfig.sh`
(or from anywhere else) into a single `merged-kubeconfig`.
2021-04-29 11:05:20 -07:00
1159c4ba7b Adda a helm chart for in-cluster kubernetes_service agent (#4963)
* Add helm chart for in-cluster kubernetes_service agent

This is a simplified version of the teleport chart, intended to only run
a "stateless" `kubernetes_service` instance within a kubernetes cluster.
This instance joins an externally-managed teleport cluster, given a
proxy address and a join token. The connection is always over a reverse
tunnel, per our recommended approach.

The chart is opinionated and only lets the user modify the bare minimum.

* Apply suggestions from code review

Co-authored-by: Gus Luxton <gus@gravitational.com>

* Move join token into a secret

Secret can be more tightly restricted via RBAC, and encrypted at rest
with KMSs.

Also, a few other small tweaks for UX.

Co-authored-by: Andrew Lytvynov <andrew@gravitational.com>
Co-authored-by: Gus Luxton <gus@gravitational.com>
2020-11-24 20:20:00 -08:00
Gus Luxton 434775692a Revert "Fix shellcheck quotation warnings" (#4477)
This reverts commit f06e9204d1.
2020-10-07 14:00:02 -03:00
Andrew LytvynovandGus Luxton 4b6cf2b2c9 Apply suggestions from code review
Co-authored-by: Gus Luxton <gus@gravitational.com>
2020-10-06 17:32:38 +00:00
Andrew Lytvynov f06e9204d1 Fix shellcheck quotation warnings
And enable all shellcheck checks in CI.
2020-10-06 17:32:38 +00:00
Gus Luxton 32890ab70c Fix namespace usage in k8s-auth script (#4388)
* Fix namespace usage in k8s-auth script

* Fix more namespace usages
2020-09-29 11:07:43 -03:00
Andrew Lytvynov de9f9b9ce9 Universal kubeconfig provisioning script (#4086)
This script is similar to `examples/gke-auth/get-kubeconfig.sh` but
should work for any k8s setup.

It uses a service account bearer token for authentication instead of TLS
key/cert. These tokens shouldn't expire and are more appropriate for
automation. It also fetches the CA cert from the service account secret,
which is more reliable than assuming a `kube-dns` pod exists in the
cluster.

In addition, this script sets up the needed k8s RBAC objects for
impersonation, saving the user a few extra steps.
2020-07-21 12:31:22 -07:00