<p>This is my deployment manifest</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: mongodb-deployment
  labels: 
    app: mongodb
spec:
  replicas: 1
  selector:
    matchLabels:
      app: mongodb
  template:
    metadata:
      labels:
        app: mongodb
    spec:
      containers:
      - name: mongodb
        image: mongo
        ports:
        - containerPort: 27017
        env: 
        - name: MONGO_INITDB_ROOT_USERNAME
          valueFrom:
            secretKeyRef:
              name: mongodb-secret
              key: mongo-root-username
        - name: MONGO_INITDB_ROOT_PASSWORD
          valueFrom:
            secretKeyRef:
              name: mongodb-secret
              key: mongo-root-password
</code></pre>
<p>I have tried several times to apply Kubernetes manifest with this Yaml file but it is throws the below mentioned error.</p>
<pre><code>Failed to pull image &quot;mongo&quot;: rpc error: code = Unknown desc = context deadline exceeded
  Warning  Failed     13s    kubelet            Error: ErrImagePull
  Normal   BackOff    13s    kubelet            Back-off pulling image &quot;mongo&quot;
  Warning  Failed     13s    kubelet            Error: ImagePullBackOff
</code></pre>
<p>If someone could hep me fix this issue it would be helpful.</p>

Leon Mahbub
<p>instead of &quot;mongo&quot; for the image use this: &quot;registry.hub.docker.com/library/mongo&quot;</p>
