Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Understanding Kubernetes’s Taints and Tolerations in easy way

What is meaning of taint?
a trace of a bad or undesirable substance or quality.

What is tainted?
spoiled; damaged in quality, taste, or value.

What is toleration?
the practice of tolerating something, in particular differences of opinion or behaviour.

Here in Kubernetes, we use taint with nodes and Tolerations with Pod.

  • Node affinity, is a property of Pods that attracts them to a set of nodes (either as a preference or a hard requirement).
  • Taints are the opposite — they allow a node to repel a set of pods.
  • Tolerations – Tolerations are applied to pods, and allow (but do not require) the pods to schedule onto nodes with matching taints.

Taints and tolerations work together to ensure that pods are not scheduled onto inappropriate nodes. One or more taints are applied to a node; this marks that the node should not accept any pods that do not tolerate the taints.

Lets understand using taint with one or more nodes in Kubernetes first.

The default value for operator is Equal.

A toleration “matches” a taint if the keys are the same and the effects are the same, and:

  • the operator is Exists (in which case no value should be specified), or
  • the operator is Equal and the values are equal.

Here’s an example of a pod that uses tolerations:

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.