Certified Kubernetes Administrator - Exam Notes
k = kubectl
- How to get pods by label?
For example: k get pods --selector env=dev k get pods --selector bu=finance
If it possible to find resource using multiple selectors?
kubectl get all --selector env=prod,bu=finance,tier=frontend
- What is the difference between NoExecute, NoSchedule, PreferNoSchedule?
- How to check if node is tainted?
k describe node node01 | grep -i taints
- How to add tolerations?
https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
- How to remove taint?
kubectl taint nodes controlplane node-role.kubernetes.io/control-plane:NoSchedule-
- How to check on which node is pod?
kubectl get pods -o wide