🔥 3-day streak
Certified Kubernetes Administrator (CKA)56 / 125
Question 56 of 125
You are upgrading a worker node named worker-3 as part of a rolling kubeadm upgrade. Before running the kubelet package upgrade, you attempt to drain the node with `kubectl drain worker-3`, but the command fails with an error stating that the node contains DaemonSet-managed Pods and Pods with local storage (emptyDir volumes). You must safely evict the workloads and proceed with the upgrade without losing critical control-plane agents that run on every node. Which command correctly drains the node in this situation?
Reviewed for accuracy · Report an issueNext question