KubernetesCommand
Drain a Node
Type this command
kubectl drain my-nodePrepares a node for maintenance by evicting its pods.
The Kubernetes command to drain a node is kubectl drain my-node.
kubectl drain my-nodekubectl drain my-nodePrepares a node for maintenance by evicting its pods.
Run kubectl drain my-node.
Run kubectl drain my-node.
Type it in the terminal or command-line interface used by Kubernetes.
Yes. The command text is the same on both platforms when the tool is installed.