mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Remove the cni directory when resetting; otherwise kubelet can pick up the wrong config on the next kubeadm init run
This commit is contained in:
parent
cdb8c79415
commit
51d733f418
@ -136,7 +136,7 @@ func (r *Reset) Run(out io.Writer) error {
|
||||
fmt.Printf("failed to unmount directories in /var/lib/kubelet, %s", string(umountOutputBytes))
|
||||
}
|
||||
|
||||
dirsToClean := []string{"/var/lib/kubelet"}
|
||||
dirsToClean := []string{"/var/lib/kubelet", "/etc/cni/net.d"}
|
||||
|
||||
// Only clear etcd data when the etcd manifest is found. In case it is not found, we must assume that the user
|
||||
// provided external etcd endpoints. In that case, it is his own responsibility to reset etcd
|
||||
|
Loading…
Reference in New Issue
Block a user