Kubernetes deployment status ImagePullBackOff

7/8/2020

when I’m trying to pull a docker image, it throws this error ImagePullBackOff

NAME                                   READY   STATUS             RESTARTS   AGE
mynodeappdeployment-77b96f978f-zz9kh   0/1     ErrImagePull       0          8s
mynodeappdeployment-7c459c57b4-dj7c6   0/1     ImagePullBackOff   0          4m12s
mynodeappdeployment-7c459c57b4-gzxms   0/1     ImagePullBackOff   0          4m12s
mynodeappdeployment-7c459c57b4-p9ghl   0/1     ImagePullBackOff   0          4m12s

My docker image is @ https://hub.docker.com/repository/docker/narasingu/node-docker

My deployment yaml configuration is

---
kind: Service
apiVersion: v1
metadata:
    name: nodejs-server-service
spec:
    selector:
        app: nodejs-server-app
    ports:
    -   protocol: "TCP"
        port: 8080
        targetPort: 80
        nodePort: 32000
    type: LoadBalancer

---
apiVersion: apps/v1
kind: Deployment
metadata:
    name: mynodeappdeployment
spec:
    replicas: 3
    selector:
        matchLabels:
          app: nodejs-server-app
    template:
        metadata:
            labels:
                app: nodejs-server-app
        spec:
            containers:
            - name: myapp
              image: narasingu/node-docker:v1
              ports:
              - containerPort: 9000
---

Looks like it's not pulling the docker image, any help?

-- Sai Prakash Narasingu
docker
docker-registry
kubectl
kubernetes

0 Answers