@here I am dong the lab of Node affinity lecture. Can anybody help with the ques . . .

hasmukhrathod:
@here I am dong the lab of Node affinity lecture.
Can anybody help with the question asked in screenshot. @Mumshad Mannambeth @Tej_Singh_Rana

Ravi Tripathi:
Yes i think there is some bug in this lab, correct answer is controlplane and node01 but somehow when we do pods -o wide it is not showing the same.

Tej_Singh_Rana:
Hello, @hasmukhrathod
Did you check a taints on controlplane node?

Tej_Singh_Rana:
Did you try to increase the replicas of deployment?

Tej_Singh_Rana:
Sufficient resources available in the node01 that’s why it got deployed on node01. You can increase the pod count to see the difference. For that increase the replica count of deployment.

kubectl scale deploy <deploy-name> --replicas=20

after that check the node status,

kubectl get pods -owide

Tej_Singh_Rana:
Let me know.

hasmukhrathod:
@Ravi Tripathi Thanks for the reply. Yes, all the nodes are placed on node01.
@Tej_Singh_Rana I tried with 25 replicas. There are no taints on master as well as on node01. But all the pods are place on node01 only. May be @Ravi Tripathi is right… Something is wrong here…


hasmukhrathod:
@Mumshad Mannambeth @Tej_Singh_Rana One more feedback. Solution video is also not as per the question in the lab. Some mismatch in the questions.