In this section, we will take a look at taints and tolerations.
Only pods which are tolerant to the particular taint on a node will get scheduled on that node.
Use kubectl taint nodes
command to taint a node.
Syntax
$ kubectl taint nodes <node-name> key=value:taint-effect
Example
$ kubectl taint nodes node1 app=blue:NoSchedule
NoSchedule
PreferNoSchedule
NoExecute
tolerations
section in pod definition.
```
apiVersion: v1
kind: Pod
metadata:
name: myapp-pod
spec:
containers:
$ kubectl describe node kubemaster |grep Taint