Kubernetes CKA sample exam question 81 with answer

Question
Display ONLY names of those nodes which DO NOT have label node-role.kubernetes.io/master= configured.
There should be only one column called NAME.

Answer
You can use custom-columns in the output of this command. Below is the desired output:

kubectl get nodes -l='!node-role.kubernetes.io/master' -o=custom-columns=NAME:.metadata.name