-
Notifications
You must be signed in to change notification settings - Fork 724
Description
Is this a BUG REPORT or FEATURE REQUEST?
FEATURE REQUEST
Versions
kubeadm version kubeadm version: &version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.3", GitCommit:"2d3c76f9091b6bec110a5e63777c332469e0cba2", GitTreeState:"clean", BuildDate:"2019-08-26T15:59:52Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"darwin/amd64"}
What happened?
On master nodes, /etc/kubernetes/kubelet.conf
gets created with "hardcoded" client-certificate/client-key
instead of pointing to /var/lib/kubelet/pki/kubelet-client-current.pem
as done on minions node.
What you expected to happen?
I expected /etc/kubernetes/kubelet.conf
to point to /var/lib/kubelet/pki/kubelet-client-current.pem
to leverage automatic kubelet client certificate rotation that is configured by kubeadm
How to reproduce it (as minimally and precisely as possible)?
kubeadm init && cat /etc/kubernetes/kubelet.conf
Anything else we need to know?
I already know this a chicken-and-egg problem but I think it would be really nice if the first master, after initialising the control plane, could make use of /var/lib/kubelet/pki/kubelet-client-current.pem
to further streamline the certificates rotation process and avoid having to use kubeadm init kubeconfig kubelet
just on the master nodes to renew kubelet's client certificate.