Editing Kubectl drain
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
[[kubectl]] drain | [[kubectl]] drain | ||
− | [[kubectl drain]] | + | [[kubectl drain]] your-node-name --ignore-daemonsets |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
* https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#drain | * https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#drain | ||
Line 18: | Line 10: | ||
[[Pod Disruption Budget]] example: | [[Pod Disruption Budget]] example: | ||
[[kubectl]] drain ip-10-0-3-48.us-east-2.compute.internal --ignore-daemonsets | [[kubectl]] drain ip-10-0-3-48.us-east-2.compute.internal --ignore-daemonsets | ||
− | error when evicting pods/"your-pod-name" (will retry after 5s): Cannot | + | error when evicting pods/"your-pod-name" (will retry after 5s): Cannot evict pod as it would violate the pod's [[disruption budget]] |
Advertising: