k3s/pkg/cluster
Brad Davidson 992e64993d Add support for kubeadm token and client certificate auth
Allow bootstrapping with kubeadm bootstrap token strings or existing
Kubelet certs. This allows agents to join the cluster using kubeadm
bootstrap tokens, as created with the `k3s token create` command.

When the token expires or is deleted, agents can successfully restart by
authenticating with their kubelet certificate via node authentication.
If the token is gone and the node is deleted from the cluster, node auth
will fail and they will be prevented from rejoining the cluster until
provided with a valid token.

Servers still must be bootstrapped with the static cluster token, as
they will need to know it to decrypt the bootstrap data.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-02-07 14:55:04 -08:00
..
managed [master] changing package to k3s-io (#4846) 2022-03-02 15:47:27 -08:00
bootstrap_test.go [master] changing package to k3s-io (#4846) 2022-03-02 15:47:27 -08:00
bootstrap.go Add support for kubeadm token and client certificate auth 2023-02-07 14:55:04 -08:00
cluster.go Fixed loadbalancer in case of IPv6 addresses 2022-03-31 11:49:30 +02:00
encrypt.go [master] changing package to k3s-io (#4846) 2022-03-02 15:47:27 -08:00
etcd.go [master] changing package to k3s-io (#4846) 2022-03-02 15:47:27 -08:00
https.go Bugfix: do not break cert-manager when pprof is enabled (#6635) 2023-01-13 16:09:14 -08:00
managed.go Fix issue with datastore corruption on cluster-reset (#5515) 2022-04-27 13:44:15 -07:00
router.go Remove unnecessary copies of runtime struct 2022-02-28 12:05:16 -08:00
storage.go Replace deprecated ioutil package (#6230) 2022-10-07 17:36:57 -07:00