How to Add or Remove Labels to Nodes in Kubernetes

When you work on a real-time environment there will be times when you want to run a specific type of workloads or application a designated worker node.

For example production workloads should be running on specific worker nodes and shouldn8217t get mixed with staging or development workloads.

This is where adding labels to the node will be helpful.

Let me show you how to add labels to nodes in Kubernetes change the labels and remove those labels later.

You can list Kubernetes node details along with their labels in this fashion.

If you want to know the details for a specific node use this.

The labels are in form of key-value pair. They must begin with a letter or number and may contain letters numbers hyphens dots and underscores up to 63 characters each.

Now suppose you want kworker-rj1 node to host all the production related workloads.


Read Full Post

News Link:
RSS Link:

Linux Chatter is a news aggregator service that curates some of the best Linux, Cloud, Technical Guides, Hardware and Security news. We display just enough content from the original post to spark your interest. If you like the topic, then click on the 'read full post' button to visit the author's website. Use Linux Chatter to find content from amazing authors!

Note: The content provided has been modified and is not displayed as intended by the author. Any trademarks, copyrights and rights remain with the source.

Disclaimer: Linux Chatter sources content from RSS feeds and personal content submissions. The views and opinions expressed in these articles are those of the authors and do not necessarily reflect those of Linux Chatter.