# Troubleshoot Kubernetes ErrorImagePullBackOff

**URL:** <https://community.dynatrace.com/t/troubleshoot-kubernetes-errorimagepullbackoff/38988>\
**Category:** Container platforms\
**Tags:** kubernetes\
**Created:** [March 24, 2023, 7:54am UTC](https://community.dynatrace.com/t/troubleshoot-kubernetes-errorimagepullbackoff/38988 "2023-03-24T07:54:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![echwallah](https://avatars.discourse-cdn.com/v4/letter/e/9e8a1a/32.png) [@echwallah](https://community.dynatrace.com/u/echwallah)\
**Post date:** [March 24, 2023, 7:54am UTC](https://community.dynatrace.com/t/troubleshoot-kubernetes-errorimagepullbackoff/38988/1 "2023-03-24T07:54:15Z")

</div>

### ImagePullBackoff&nbsp;error on OneAgent and ActiveGate pods

The underlying host’s container runtime doesn’t contain the certificate presented by your endpoint.

**Note:** &nbsp;The&nbsp;skipCertCheck&nbsp;field in the DynaKube YAML does not control this certificate check.

Example error (the error message may vary):

copydownload

```auto
desc = failed to pull and unpack image "<environment>/linux/activegate:latest": failed to resolve reference "<environment>/linux/activegate:latest": failed to do request: Head "<environment>/linux/activegate/manifests/latest": x509: certificate signed by unknown authority
Warning Failed ... Error: ErrImagePull
Normal BackOff ... Back-off pulling image "<environment>/linux/activegate:latest"
Warning Failed ... Error: ImagePullBackOff

```

In this example, if the description on your pod shows&nbsp;x509: certificate signed by unknown authority, you must fix the certificates on your Kubernetes hosts, or use the private repository configuration to store the images.

The documentation does not explicitly describe how to fix the Certificates on Kubernetes Hosts but just mention they need to be fixed.

Does anyone have a stepwise guide on how to fix this by resolving the certificate issue

---

<div class="post-metadata">

**Author:** ![shahinm](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@shahinm](https://community.dynatrace.com/u/shahinm)\
**Post date:** [March 24, 2023, 8:26am UTC](https://community.dynatrace.com/t/troubleshoot-kubernetes-errorimagepullbackoff/38988/2 "2023-03-24T08:26:33Z")

</div>

The documentation does not describe the fix because 1) it is not Dynatrace product-related issue, 2) each environment has security requirements and technology dependency. The issue occurs because your container runtime client, which is responsible for pulling images from an image repository, does not trust the cert provided by that resource.

To solve this certificate issue, you need to add the certificate of the private image repository to the trusted CA (Certificate Authority) of your Kubernetes/Openshift cluster.

---

<div class="post-metadata">

**Author:** ![CosmicDu5t](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@CosmicDu5t](https://community.dynatrace.com/u/CosmicDu5t)\
**Post date:** [March 29, 2023, 12:56pm UTC](https://community.dynatrace.com/t/troubleshoot-kubernetes-errorimagepullbackoff/38988/3 "2023-03-29T12:56:29Z")

</div>

I had a similar issue and resolved it by putting the Certificate Authority certificate in a file called ca.crt under /etc/docker/certs.d/\<environment URL:port\>

---

<div class="post-metadata">

**Author:** ![steven\_torres](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@steven\_torres](https://community.dynatrace.com/u/steven_torres)\
**Post date:** [June 13, 2023, 5:00pm UTC](https://community.dynatrace.com/t/troubleshoot-kubernetes-errorimagepullbackoff/38988/4 "2023-06-13T17:00:10Z")

</div>

We are having the same issue in Openshift 4.x. We confirmed the skip auth is set to true in the yaml. Per your solution,&nbsp;I have the ca.cert but I don’t know where do I place this ca.cert bundle from the openshift end to get this resolved?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [June 13, 2023, 8:25pm UTC](https://community.dynatrace.com/t/troubleshoot-kubernetes-errorimagepullbackoff/38988/5 "2023-06-13T20:25:33Z")

</div>

I believe this is what you are looking for&nbsp;[https://docs.openshift.com/container-platform/4.10/openshift\_images/image-configuration.html](https://docs.openshift.com/container-platform/4.10/openshift_images/image-configuration.html) and look for additionalTrustedCA
