Files
teleport/lib/client
Andrew Lytvynov 52c52c7e20 Add "tsh kube" commands (#4769)
1. `tsh kube clusters` - lists registered kubernetes clusters
   note: this only includes clusters connected via `kubernetes_service`

2. `tsh kube credentials` - returns TLS credentials for a specific kube
   cluster; this is a hidden command used as an exec plugin for kubectl

3. `tsh kube login` - switches the kubectl context to one of the
   registered clusters; roughly equivalent to `kubectl config
   use-context`

When updating kubeconfigs, tsh now uses the exec plugin mode:
https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins
This means that on each kubectl run, kubectl will execute tsh with
special arguments to get the TLS credentials.

Using tsh as exec plugin allows us to put a login prompt when certs
expire. It also lets us lazy-initialize TLS certs for kubernetes
clusters.
2020-11-11 22:22:01 +00:00
..
2020-11-11 22:22:01 +00:00
2020-10-13 00:22:49 +00:00
2020-11-11 22:22:01 +00:00
2018-10-12 17:42:37 -07:00
2020-11-11 22:22:01 +00:00
2020-11-11 22:22:01 +00:00
2020-11-11 22:22:01 +00:00
2020-05-27 19:36:38 +00:00
2020-10-13 00:22:49 +00:00
2020-06-11 15:58:08 +00:00