Skip to content
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

Feature Request: UI Integration to Apply Taints automatically to Node Pools #28

Open
joeldeteves opened this issue Jan 3, 2022 · 5 comments

Comments

@joeldeteves
Copy link

It would be nice if there were an option in the DO Control Panel to automatically apply a taint to any nodes that belong to a specific node pool - it could be added under the Node Pool settings:

image

This would help us better manage our clients some of whom need to stay on specific nodes.

Currently I am handling it by manually re-applying the taints if I need to recycle the nodes.

I suppose I could script it and execute a job periodically, but it would be nice if it was done at the DO level.

Thanks for your consideration,

@timoreimann
Copy link
Contributor

timoreimann commented Jan 3, 2022

Hi @joeldeteves 👋

While we don't have UI / control panel integration yet, it is possible to specify so-called persistent node pool taints through the API that have the very behavior you are describing. See also the taints field on the DOKS API reference.

Does that help you, or were you asking for UI integration in particular?

@timoreimann
Copy link
Contributor

Related: #3

@joeldeteves
Copy link
Author

joeldeteves commented Jan 3, 2022

Hi @joeldeteves 👋

While we don't have UI / control panel integration yet, it is possible to specify so-called persistent node pool taints through the API that have the very behavior you are describing. See also the taints field on the DOKS API reference.

Does that help you, or were you asking for UI integration in particular?

UI integration would definitely make things easier.

But regarding the option you showed me, is it possible to apply a persistent node pool taint to an existing node pool?

Currently I only see it under the add section of that document.

Nevermind, I see it under the update section as well!

Thank you,

@timoreimann
Copy link
Contributor

Great! I'm happy to keep the issue open to publicly track UI integration.

@timoreimann timoreimann changed the title Feature Request: Apply Taints automatically to Node Pools Feature Request: UI Integration to Apply Taints automatically to Node Pools Jan 3, 2022
@joeldeteves
Copy link
Author

Here's how I did it in case anyone else is searching for a quick solution:

  1. export $DIGITALOCEAN_TOKEN=my-access-token
  2. doctl -t $DIGITALOCEAN_TOKEN kubernetes cluster node-pool update mycluster mynodepool --taint "key=false:NoExecute"

Using doctl is a bit easier than using cURL or other methods to access the API.

Docs on how to use doctl here: https://docs.digitalocean.com/reference/doctl/reference/kubernetes/cluster/node-pool/update/

Thanks again @timoreimann

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants