pacoxu / kubeadm-operator

Test work on the design of kubeadm operator. Also you can try https://github.com/chendave/kubeadm-operator
Apache License 2.0
10 stars 2 forks source link

use a different volume for the certificates when kubeadm upgrade apply. #57

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

use a different volume for the certificates when kubeadm upgrade apply.

"kubeadm upgrade node" may use different dirs

var-lib-kubelet is used by kubeadm upgrade apply to store the certificates and /var/lib/kubelet/kubeadm-flags.env

https://github.com/pacoxu/kubeadm-operator/blob/c7c911b9b71984b7c2e59cffb806fb72c6a11af4/controllers/util.go#L190

                                    MountPath: "/usr/bin/cp",
                                },
                                {
                                    Name:      "etc-kubernetes",
                                    MountPath: "/etc/kubernetes",
                                },
                                // TODO: use a different volume for the certificates when kubeadm upgrade apply.
                                // "kubeadm upgrade node" may use different dirs
                                // var-lib-kubelet is used by kubeadm upgrade apply to store the certificates and /var/lib/kubelet/kubeadm-flags.env
                                {
                                    Name:      "var-lib-kubelet",
                                    MountPath: "/var/lib/kubelet/",
                                },
                                // run is used to check container runtime status
                                {
                                    Name:      "run",

e5e79b8e22dfd4a1c79fabd0685e12331cebfd9d