Taint and Toleration
Taint and Toleration
TAINT AND TOLERATION
k taint nodes node01 storage=ssd:NoSchedule
=> This will Create a tain on node01, and pods will not be scheduled on it
Create a simple nginx pod
kubectl run --image=nginx
Create a deployment with toleration and see if it runs
As you can see in the manifest file in the container spec section:
And with thi toleration th deployment will run on node01
Remove the taint from the node
Follow up the command with hypehn '-'
controlplane ~ ➜ k taint nodes node01 storage=ssd:NoSchedule- node/node01 untainted