-
Hello, Is it possible to get example/explanation of the difference between the two ? Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
From the README: # If left unspecified, no drain will be performed.
# See:
# - https://kubernetes.io/docs/tasks/administer-cluster/safely-drain-node/
# - https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#drain
drain:
# deleteLocalData: true # default
# ignoreDaemonSets: true # default
force: true
# Use `disableEviction == true` and/or `skipWaitForDeleteTimeout > 0` to prevent upgrades from hanging on small clusters.
# disableEviction: false # default, only available with kubectl >= 1.18
# skipWaitForDeleteTimeout: 0 # default, only available with kubectl >= 1.18 From https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#drain:
What this means is that prior to 1.18 If you do not set either of these values for draining nodes in a 1.18+ cluster then, with PDB honored via the Eviction API, your drain operations can hang indefinitely while waiting for an appropriate node to reschedule your pod(s) to. An example of this would be attempting to upgrade a 3-server HA cluster with Rancher 2.x and Longhorn installed: by default Rancher deploys a 3 member ReplicaSet and Longhorn requires 3 members DaemonSets for quorum which means that attempting to perform an upgrade on any of these nodes for a plan with |
Beta Was this translation helpful? Give feedback.
-
@adi90x if you have suggestion(s) for how this can be made more clear in the README I would welcome a pull request! |
Beta Was this translation helpful? Give feedback.
From the README:
From https://kubernetes.io/docs/reference/generated/kubectl/kubectl-co…