Kubernetes CKA sample exam question 87 with answer

Question
Find the Pod with the highest priority in Namespace management and delete it.

Answer
Priority is an attribute in the Pod specification - you can find it in .spec.priority.
Get all pods in yaml:

kubectl -n management get po -o yaml | grep -i priority -B 20
Check the higher value and look into .metadata.name to get the name of pod. Then delete it:
kubectl -n management delete po sprinter