
Kubernetes Labels and Selectors Tutorial for Beginners
Kubernetes Labels are key-value pairs which are attached to pods, replication controller and services. They are used as identifying attributes for objects such as pods and replication controller. They can be added to an object at creation time and can be added or modified at the run time.
Kubernetes selectors allows us to select Kubernetes resources based on the value of labels and resource fields assigned to a group of pods or nodes.
Kubernetes labels do not provide uniqueness, so many objects can carry the same labels. Kubernetes Labels selectors are used by users to select a set of objects or resources. The label selector is the core grouping primitive in Kubernetes. Kubernetes API currently supports two types of selectors.
a. Equality-based selectors
b. Set-based selectors.
Equality-based Selectors allow filtering by key and value. Matching objects should satisfy all the specified labels. One usage of equality-based selectors is for the Pods to specify node selection criteria. For example, the sample Pod selects nodes with the label "accelerator=nvidia-p100". With the equality-based selector, you can use either equal to or not equal to operators.
Set-based selectors allow filtering of keys according to a set of values. With the set-based selector, you can use either in or notin operator, which is similar to the SQL IN clause that can specify multiple keywords.
Kubernetes is a popular open-source platform for container orchestration. It enables developers to easily build containerized applications and services. Kubernetes also scale, schedule and monitor those containers. Kubernetes automates operational tasks of container management and includes built-in commands for deploying applications, rolling out changes, scaling up and down, monitoring applications, and more. Kubernetes makes it easier to manage your containerized applications.
To build an application you need to build a bunch of containers and then use Kubernetes to manage those containers. Kubernetes is a system that manages containers i.e., containerized applications where a container could be explained as a lightweight virtual machine.
Major advantages of Kubernetes are as follow
1. Kubernetes Automates Container orchestration
2. Automatic Scaling Up and Down.
3. Strong Open-Source Communities.
4. Cost Efficiencies and Savings.
5. Ability to Run Anywhere.
6. Multi-Cloud Possibilities.
7. Improve Developer Productivity.
#kubernetes #labels #selectors
** CHECK OUT OUR OTHER VIDEOS **
Kubernetes Tutorial for Beginners • Kubernetes Cluster Tutorial for Begin...
Kubernetes Architecture Component & Cluster • Kubernetes Master & Worker Node Archi... …
Kubernetes Node Affinity Taints & Tolerations • Kubernetes Node Affinity Taints & Tol... …
Why Python is Number1 language • Why Python Programming Language is on...
What is Python function? • What is Python Function? | Learn Pyth...
** CHECK OUR PLAYLISTS **
CodeOneDigest Learning Shorts
• COD Shorts - Java Python Nodejs AWS C...
Kubernetes Cluster Architecture Master & Worker Node Tutorial • Kubernetes Cluster Architecture | Mas...
Docker Containers Complete Tutorial
• Cloud & Container Tutorial with AWS C... …
Complete Python Learning Tutorial Playlist
• Python Programming Language | The Com...
Spring Boot Complete Tutorial • Spring Boot Tutorial with Project Set...
** ABOUT OUR CHANNEL **
CodeOneDigest is a youtube channel for the videos on programming language, cloud and docker container technology in English and Hindi languages.
Dosto, CodeOneDigest youtube channel pe aapko programming languages, container technology, cloud computing, software engineering se related videos milenge.
Check out our channel here:
/ @codeonedigest
Don’t forget to subscribe!
** OUR WEBSITE **
codeonedigest.wordpress.com/
** GET IN TOUCH **
Contact us on codeonedigest@gmail.com
FOLLOW US ON SOCIAL - LIKE, SHARE & SUBSCRIBE
Get updates or reach out to Get updates on our Social Media Profiles!
Subscribe: bit.ly/3NeWQ8U
Youtube: / @codeonedigest
Twitter: twitter.com/codeonedigest
Facebook: www.facebook.com/codeonedigest
Instagram: www.instagram.com/codeonedigest/
Linkedin: www.linkedin.com/in/codeone-digest-10b418255/
Reddit: www.reddit.com/user/codeonedigest
Github: github.com/codeonedigest
Website: codeonedigest.wordpress.com/
Tumblr: www.tumblr.com/codeonedigest
Pinterest: in.pinterest.com/codeonedigest/
コメント