Kubernetes CKA sample exam question 107 with answer

Question
Label the node node01 with key equals to disk and value equals to ssd.
Deploy new pods on this node using this label.

Answer
Label node:

kubectl label node node01 disk=ssd
Add following snippet in your Pod's configuration inside spec:
spec:
  nodeSelector:
    disk: ssd