@here I am dong the lab of Node affinity lecture.
Can anybody help with the question asked in screenshot. @Mumshad Mannambeth @Tej_Singh_Rana
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.
Did you check a taints on controlplane node?
Did you try to increase the replicas of deployment?
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
Let me know.
@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…
@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.