Nat Kus:
Hello - have a question for ckad lighting lab -2 Q.3. The solution is asking to add a toleration when there is no taint on controlplane node - is this correct and why?
Create a pod called my-busybox in the dev2406 namespace using the busybox image. The container should be called secret and should sleep for 3600 seconds.
The container should mount a read-only secret volume called secret-volume at the path /etc/secret-volume. The secret being mounted has already been created for you and is called dotfile-secret.
Make sure that the pod is scheduled on controlplane and no other node in the cluster.
k get no controlplane | grep -i Taint
Taints: none
Solution has:
nodeSelector:
<http://kubernetes.io/hostname|kubernetes.io/hostname>: controlplane
tolerations:
- key: "<http://node-role.kubernetes.io/master|node-role.kubernetes.io/master>"
operator: "Exists"
effect: "NoSchedule"