Environment
k3s version v1.19.4+k3s-989c9369 (989c9369)
Issue
Deletion of node is stuck due to presence of finalizer. This seems to be a regression
Steps to reproduce
finalizers:
- wrangler.cattle.io/managed-etcd-controller
- wrangler.cattle.io/node
labels:
--
f:finalizers:
.: {}
v:"wrangler.cattle.io/managed-etcd-controller": {}
v:"wrangler.cattle.io/node": {}
Related issue https://github.com/rancher/rke2/issues/401
The issue was also reproduced in v1.19.3+k3s3. Since the issue is pre-existing we don't want it to block our imminent releases. We'll mention this in the release notes. I've bumped the milestone to the next set of patch releases. This will need to get fixed in 1.19, 1.20, and master.
We'll see if there is a workaround so that this can also be indicated in the release notes.
The issue seems to happen intermittently and will not always be observed. The release notes will briefly explain the issue and workaround to fix the finalizers so the node(s) can be deleted.
Note: To delete the node that is stuck during delete
kubectl get node -o name <nodename> | xargs -i kubectl patch {} -p '{"metadata":{"finalizers":[]}}' --type=merge
Most helpful comment
Note: To delete the node that is stuck during delete