How to resolve if Deployment Status shows Failed or Degraded when you pull images from private container registry
If the deployment status shows Failed or Degraded, then the cluster is not able to pull container image from the private registry. In that case, the status of pod shows ImagePullBackOff.
The failure of deployment can be one of the following reasons:
- Provided credentials may not have permission to pull container image from registry.
- Provided credentials may be invalid.
You can resolve the ImagePullBackOff
issue by clicking How to resolve? on the App Details page.
To provide the auto-inject credentials to the specific clusters for pulling the image from the private repository, click Manage Access which will take you to the Container Registries page.
- On the Container Registries page, select the docker registry and click Manage.
- In the Auto-inject credentials to clusters, click Confirm to edit to select the specific cluster or all clusters for which you want to auto-inject the credentials to and click Save.
- Redeploy the application after allowing the access.