Search code examples
azurekuberneteskubectlazure-container-registry

kubectl get pods command shows "ErrImageNeverPull"


I have uploaded my image on ACR. When I try to deploy it using a deployment.yaml with kubectl commands, the kubectl get pods command shows ErrImageNeverPull in the pods.

Also, I am not using minikube. Is it necessary to use minikube for this? I am a beginner in azure/kubernetes.

I've also used imagePullPolicy: Never in the yaml file. It's not working even without this and shows ImagePullBackOff.


Solution

  • As Payal Jindal mentioned in the comment:

    It worked fine. There was a problem with my docker installation.

    Problem is now resolved. The way forward is to set the image pull policy to IfNotPresent or Always.

    spec:
        containers:
            - imagePullPolicy: Always