kubectl drain
Drain node in preparation for maintenance kubectl reference
12 options Its page in the kubectl reference
Options
--chunk-sizeReturn large lists in chunks rather than all at once.--delete-emptydir-dataContinue even if there are pods using emptyDir (local data that will be deleted when the node is drained).--disable-evictionForce drain to use delete, even if eviction is supported.--dry-runMust be "none", "server", or "client".--forceContinue even if there are pods that do not declare a controller.--grace-periodPeriod of time in seconds given to each pod to terminate gracefully.--help, -hhelp for drain--ignore-daemonsetsIgnore DaemonSet-managed pods.--pod-selectorLabel selector to filter pods on the node--selector, -lSelector (label query) to filter on, supports '=', '==', '!=', 'in', 'notin'.(e.g. -l key1=value1,key2=value2,key3 in (value3)).--skip-wait-for-delete-timeoutIf pod DeletionTimestamp older than N seconds, skip waiting for the pod.--timeoutThe length of time to wait before giving up, zero means infinite