ad66a50f3a
In addition to a couple of k8s questions.
743 B
743 B
Taints 101
Objectives
- Check if one of the nodes in the cluster has taints (doesn't matter which node)
- Create a taint on one of the nodes in your cluster with key of "app" and value of "web" and effect of "NoSchedule"
- Explain what it does exactly
- Verify it was applied
Solution
kubectl describe no minikube | grep -i taints
kubectl taint node minikube app=web:NoSchedule
- Any resource with "app=web" key value will not be scheduled on node
minikube
kubectl describe no minikube | grep -i taints
- Any resource with "app=web" key value will not be scheduled on node
kubectl run some-pod --image=redis
kubectl edit po some-pod
- effect: NoSchedule
key: app
operator: Equal
value: web
Save and exit. The Pod should be running.