lukasz-cpu / Certified-Kubernetes-Administrator

Certified Kubernetes Administrator - Exam Notes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Certified-Kubernetes-Administrator

Certified Kubernetes Administrator - Exam Notes

k = kubectl

  1. 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

  1. What is the difference between NoExecute, NoSchedule, PreferNoSchedule?

https://stackoverflow.com/questions/50966318/what-is-the-difference-between-noexecute-noschedule-prefernoschedule

  1. How to check if node is tainted?

k describe node node01 | grep -i taints

  1. How to add tolerations?

https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/

  1. How to remove taint?

kubectl taint nodes controlplane node-role.kubernetes.io/control-plane:NoSchedule-

  1. How to check on which node is pod?

kubectl get pods -o wide

About

Certified Kubernetes Administrator - Exam Notes