-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add option (timeout) to switch from drain to drain with disable-eviction #303
Comments
This issue was automatically considered stale due to lack of activity. Please update it and/or join our slack channels to promote it, before it automatically closes (in 7 days). |
Let's keep this opened |
It's a good feature, I think we probably want to expose this. Should we target this for 1.8.0? Will you tackle it @damoon ? That would be awesome. |
This issue was automatically considered stale due to lack of activity. Please update it and/or join our slack channels to promote it, before it automatically closes (in 7 days). |
I might have a glance at this feature. Testing/reproducing such an environment, however, might take longer than writing the feature itself :) |
The ability to drain nodes without respecting PDBs is an important feature for us as well. Currently the only way to really use kured in dev environments is by using |
We would be happy to receive a PR for this. It seems to be a useful feature 👍 |
reading a bit more regarding this, I think that kube's graceful shutdown: https://kubernetes.io/docs/concepts/architecture/nodes/#graceful-node-shutdown should cover us in case we use |
Maybe it is better instead to implement the following logic, like in this article:
|
@fa-at-pulsit I strongly disagree to implement such a logic in kured. This would mean that kured would change the settings of all PDBs in a way, that they loose there effect. This is the same behaviour as just deleting them (and restore them afterwards). This raises the question of why the cluster operator introduced PDBs in the first place then. Kured should not touch PDBs at all. I'm 👍 to implement a timeout-solution as @damoon initially suggested, but all applications must have the possibility of a graceful shutdown. |
@ckotzbauer, yes, you are right.... from this side, timeout-solution will be better! |
Details for the disable-eviction option
kubernetes/kubernetes#83307
kubernetes/kubernetes#85571
LD/DR
Allows to drain pod from a node while ignoring PodDisruptionBudgets.
Included in k8s 1.18.
Use case:
We run Kubernetes for CI. A lot of test environments contain broken containers. It is almost impossible to drain pods from a node respecting the pdb. For each node we need manual intervention and delete a few "bad" pods by hand.
I would like to have the option to say: After e.g. 1 hour of draining without success, drain the pods ignoring the PodDisruptionBudgets.
This would allow me to reboot nodes without supervision and free up a lot of time.
The text was updated successfully, but these errors were encountered: