@rahul456 @kodekloud-support3 @Inderpreet
This time when I deployed the yaml file, Pod was showing in pending state.
*why pod was in pending state? *
Reason: As master node’s hostname is different (controlplane in my case), POD was unable to schedule because it didn’t find the matching node for schedule.
I edited the deployment definition file again and applied the change. Now everything is working fine. You can see the below screenshot.
But again the task is marked as failed.
If master node’s hostname is “controlplane” why should I define nodeSelector field value as ‘master’ ?
nodeSelector in my yaml file:
- effect: NoSchedule