Commit 51d733f4 authored by Lucas Käldström's avatar Lucas Käldström

Remove the cni directory when resetting; otherwise kubelet can pick up the wrong…

Remove the cni directory when resetting; otherwise kubelet can pick up the wrong config on the next kubeadm init run
parent cdb8c794
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment