<aside> 💡 When a K8s cluster is setup. A taint is automatically applied to the master node to prevent any pod from being scheduled on the master node. This is to prevent other processes from starving the master processes required to run the K8s cluster.

Untitled

</aside>

Commands

Apply toleration to a pod

The below pod definition file tolerates the taint applied to the node as: kubectl taint node node1 compute=high:NoSchedule

apiVersion: v1
kind: Pod
metadata:
	name: web-pod
spec:
	tolerations:
		- key: compute
			operator: Equal
			value: high
			effect: NoSchedule
	containers:
		- name: nginx
			image: nginx