What happened:
The drain from kubelet cannot correctly map kind: DaemonSet from kruise to its pod.
kubectl drain s-shared-ks-loadbalancer-d421333b-7c596-w4snd
Also there is an assumption that the same behavior for StatefulSet and Deployments.
What you expected to happen:
No errors when executing drain node.
How to reproduce it (as minimally and precisely as possible):
What happened: The drain from kubelet cannot correctly map kind: DaemonSet from kruise to its pod.
kubectl drain s-shared-ks-loadbalancer-d421333b-7c596-w4snd
Also there is an assumption that the same behavior for StatefulSet and Deployments.
What you expected to happen: No errors when executing drain node.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
A patch was made for DaemonSet in upstrim. I hope that you can add a drain fix for the other components. https://github.com/kubernetes/kubernetes/pull/128779 https://github.com/kubernetes/kubernetes/pull/101556 https://github.com/kubernetes/kubernetes/issues/101557
Environment:
kubectl version
): "v1.27.16