Hello, @chiru kubectl run creates a pod not deployment. Mistakenly you created a pod and we need deployment according to the question.
In version v1.18+, kubectl run command creates a pod and for deployment, we have to use kubectl create deployment command.
I know you followed the steps from the solution video but commands have changed in k8s version v1.18+
So make sure to follow the commands according to the k8s version. Even if you can check through the kubectl run --help option, there are few examples given.