Troubleshooting Pod Issues

ImagePullBackOff

If you encounter an ImagePullBackOff error with one or more pods, the image may no longer be available upstream (i.e. no longer on DockerHub) or within the specified private repository.

It may be possible to still leverage this image if it is present one or more nodes, indicated by running pods for the same StatefulSet or Deployment. For example:

Bash
Copy

Save/Load Docker Image from Cache

  1. Identify the image – either by name, or image ID, which can be found in the kubectl describe pod or kubectl get pod output – for any Running pod.
Bash
Copy
  1. SSH to the Node on which the targeted Running pod resides, and list the Docker images.
Bash
Copy
  1. Save the Docker image – specifying the Image ID , Repository , and Tag .
Bash
Copy

Note: If the <repository>:<tag> is not specified, the Docker image will be imported without any identifying information and Kubernetes will continue to fail to spawn the pod as a result.

  1. Transfer the file (i.e. using rsync or scp ) to the destination Node where the pod is in ImagePullBackOff state.
  2. Load the Docker image on that Node .
Bash
Copy

Example

Bash
Copy

CrashLoopBackOff

NodeAffinity

Bash
Copy
Bash
Copy

You may delete the pod stuck in node affinity status as another pod is spawned for the same application.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
  Last updated by Chris Jones