taints instead of labels

15 views
Skip to first unread message

Stanislav

unread,
Mar 5, 2024, 11:31:40 AM3/5/24
to med...@googlegroups.com
Hello all!

Do I understand right that it is currently not possible to filter nodes that NHC will monitor by taints?

In my company, we use taints to distribute different kinds of loads among node pools. Auto-healing mechanics are only needed in some of them.

Regards,
Stanislav.

Marc Sluiter

unread,
Mar 5, 2024, 12:25:40 PM3/5/24
to Stanislav, med...@googlegroups.com
Hello Stanislav,

Yes, that is correct.
Since "labels" are the standard mechanism for organizing and selecting subsets of objects [1] in general, and usage of node selectors with labels is common as well, I have doubts that we would consider adding taints as additional selector.
I'd propose to add labels to the nodes which qualify for auto healing. Or even switch to using labels and node affinity instead of taints and tolerations at all [2].
Sorry for not having a better answer for you.


Kind regards

Marc Sluiter

He / Him / His

Principal Software Engineer

Red Hat

mslu...@redhat.com


Red Hat GmbH, Registered seat: Werner von Siemens Ring 12, D-85630 Grasbrunn, Germany  
Commercial register: Amtsgericht Muenchen/Munich, HRB 153243,
Managing Directors: Ryan Barnhart, Charles Cachera, Michael O'Neill, Amy Ross

   

 

--
You received this message because you are subscribed to the Google Groups "medik8s" group.
To unsubscribe from this group and stop receiving emails from it, send an email to medik8s+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/medik8s/8e146abd-cd5c-457c-9b0b-6e6fd0fd0f1d%40Spark.
For more options, visit https://groups.google.com/d/optout.

Stanislav

unread,
Mar 20, 2024, 6:43:39 AM3/20/24
to Marc Sluiter, med...@googlegroups.com
Hello, Marc!

Thanks for the answer! Eventually, I went the way of writing a script to synchronize taints with labels. Maybe in the future I'll make an operator out of this.

Kind regards,
Stanislav.


On 5 Mar 2024 at 18:25 +0100, Marc Sluiter <mslu...@redhat.com>, wrote:
Hello Stanislav,

Yes, that is correct.
Since "labels" are the standard mechanism for organizing and selecting subsets of objects [1] in general, and usage of node selectors with labels is common as well, I have doubts that we would consider adding taints as additional selector.
I'd propose to add labels to the nodes which qualify for auto healing. Or even switch to using labels and node affinity instead of taints and tolerations at all [2].
Sorry for not having a better answer for you.

[1] https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/[2] https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/
Kind regards
Marc SluiterHe / Him / HisPrincipal Software EngineerRed Hatmslu...@redhat.com
Red Hat GmbH, Registered seat: Werner von Siemens Ring 12, D-85630 Grasbrunn, Germany  Commercial register: Amtsgericht Muenchen/Munich, HRB 153243,Managing Directors: Ryan Barnhart, Charles Cachera, Michael O'Neill, Amy Ross   @redhatjobs   redhatjobs @redhatjobs  
 

Marc Sluiter

unread,
Mar 21, 2024, 9:53:26 AM3/21/24
to Stanislav, med...@googlegroups.com
Hello Stanislav,

Thanks for the update, glad you found a workaround. Sounds like a nice usecase for a small operator indeed :)

BR,

Marc

Reply all
Reply to author
Forward
0 new messages