# Storing Dynatrace Image in Private Registry

**URL:** <https://community.dynatrace.com/t/storing-dynatrace-image-in-private-registry/34536>\
**Category:** Container platforms\
**Tags:** openshift\
**Created:** [March 17, 2022, 1:46am UTC](https://community.dynatrace.com/t/storing-dynatrace-image-in-private-registry/34536 "2022-03-17T01:46:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Starhut](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Starhut](https://community.dynatrace.com/u/Starhut)\
**Post date:** [March 17, 2022, 1:46am UTC](https://community.dynatrace.com/t/storing-dynatrace-image-in-private-registry/34536/1 "2022-03-17T01:46:04Z")

</div>

Hi, we are setting up the Dynatrace Openshift monitoring (classicFullstack).

After we applied the token and apply classicFullStack.yaml, dynakube pods are not shown

dynakube-controller",“msg”:“problem with token detected”,“dynakube”:“dynakube”,“token”:“APIToken”,“msg”:“error when querying token on secret dynatrace:dynakube: error making post request to dynatrace api: Post \“[https://xxxx/e/xxxx/api/v1/tokens/lookup\](https://xxxx/e/xxxx/api/v1/tokens/lookup%5C)”: x509: certificate relies on legacy Common Name field, use SANs instead”}dynakube-controller",“msg”:“paas or api token not valid”,“name”:“dynakube”}Did anyone have encountered a similar error before?

---

<div class="post-metadata">

**Author:** ![theharithsa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/theharithsa/32/16236_2.png) [@theharithsa](https://community.dynatrace.com/u/theharithsa)\
**Post date:** [March 17, 2022, 4:22am UTC](https://community.dynatrace.com/t/storing-dynatrace-image-in-private-registry/34536/2 "2022-03-17T04:22:07Z")

</div>

Hi&nbsp;[@Starhut](https://community.dynatrace.com/user/47100)

Thanks for your question.

Looking at the error, I can see that PaaS or API token you are passing is not valid. Kindly check the right permissions while creating the token and apply the yaml file once again.

---

<div class="post-metadata">

**Author:** ![Starhut](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Starhut](https://community.dynatrace.com/u/Starhut)\
**Post date:** [March 17, 2022, 5:18am UTC](https://community.dynatrace.com/t/storing-dynatrace-image-in-private-registry/34536/3 "2022-03-17T05:18:48Z")

</div>

Hi&nbsp;[@theharithsa](https://community.dynatrace.com/user/39872)&nbsp;,

I checked on the token permission don’t find anything wrong on it.

API v1 - Access problem and event feed, metrics, and topology,

PaaS integration - Installer download

follow according to prerequisite mentioned here:

> **[Deployment](https://docs.dynatrace.com/docs/ingest-from/setup-on-k8s/deployment)**
>
> Deploy Dynatrace Operator on Kubernetes

I think the token is not valid is because of the prior error there " error making Post request" that reject it.

Thanks.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [March 17, 2022, 9:11am UTC](https://community.dynatrace.com/t/storing-dynatrace-image-in-private-registry/34536/4 "2022-03-17T09:11:29Z")

</div>

Hi&nbsp;[@Starhut](https://community.dynatrace.com/user/47100)

Wonder if the message regarding the certificate (_x509: certificate relies on legacy Common Name field, use SANs instead_) is info or error one …

I would try to skip cert here

HTH

Yos

---

<div class="post-metadata">

**Author:** ![Starhut](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Starhut](https://community.dynatrace.com/u/Starhut)\
**Post date:** [March 17, 2022, 11:55am UTC](https://community.dynatrace.com/t/storing-dynatrace-image-in-private-registry/34536/5 "2022-03-17T11:55:36Z")

</div>

Hi&nbsp;[@Yosi\_Neuman](https://community.dynatrace.com/user/6931)

I get the statement from:

oc -n dynatrace logs -f deployment/dynatrace-operator.

Since I am using immutable image, I don’t think skipcertcheck is possible. Correct me if I am wrong.

Thanks

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [March 17, 2022, 12:46pm UTC](https://community.dynatrace.com/t/storing-dynatrace-image-in-private-registry/34536/6 "2022-03-17T12:46:36Z")

</div>

Hi&nbsp;[@Starhut](https://community.dynatrace.com/user/47100)&nbsp;,

Please try to set&nbsp;_ **skipCertCheck** &nbsp;_to_&nbsp; **true** _&nbsp;as explained&nbsp; in [documentation](https://www.dynatrace.com/support/help/shortlink/full-stack-dto-openshift#parameters)

 ![Yosi_Neuman_1-1647521138325.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/8/4844fdde9581adf7ab7622df64a0ebef1b4723e4.png)

Update if the issue persist

All the best and stay safe

Yos

---

<div class="post-metadata">

**Author:** ![Starhut](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Starhut](https://community.dynatrace.com/u/Starhut)\
**Post date:** [March 17, 2022, 1:21pm UTC](https://community.dynatrace.com/t/storing-dynatrace-image-in-private-registry/34536/7 "2022-03-17T13:21:48Z")

</div>

Hi&nbsp;[@Yosi\_Neuman](https://community.dynatrace.com/user/6931)&nbsp;,

Please check this.

When using the immutable image, fields such as proxy, trustedCAs, and skipCertCheck are ignored

I am following this due to my environment is isolated from Internet.

[Link](https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-container-platforms/openshift/store-dynatrace-images-in-private-registries-openshift)

Thanks.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [March 17, 2022, 1:38pm UTC](https://community.dynatrace.com/t/storing-dynatrace-image-in-private-registry/34536/8 "2022-03-17T13:38:06Z")

</div>

Hi&nbsp;[@Starhut](https://community.dynatrace.com/user/47100)

Stand corrected.

One of our prospects had the similar issue and was able to over come it by adding the DT cluster to the allowed list in OpenShift. It was something that the OpenShift guys made and we didn’t get any details how this was set.

If that will not work open a support ticket and support will be able to give you internal domain of your dynatrace cluster that can help to solve this issue.

HTH

Yos

---

<div class="post-metadata">

**Author:** ![gopher](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/gopher/32/5728_2.png) [@gopher](https://community.dynatrace.com/u/gopher)\
**Post date:** [May 10, 2022, 6:39am UTC](https://community.dynatrace.com/t/storing-dynatrace-image-in-private-registry/34536/9 "2022-05-10T06:39:14Z")

</div>

All,

We were receiving a similar issue in GKE deployment using the v.0.5.0 & v.0.5.1 operators.

│ Last Transition Time: 2022-05-10T02:51:26Z │  
│ Message: error when querying token on secret dynatrace:dynakube: error making post request to dynatrace api: Post “https://&nbsp;:9999/e/ **\<env\>** /api/v1/token&nbsp;&nbsp;││ ns/lookup”: EOF │  
│ Reason: TokenError ││ Status: False │  
│ Type: APIToken

There seems (or is) an issue where the Service entries for Istio were not added despite being enabled in the CRD (Resource), which caused the resulting errors to occur.

We resolved the issue by manually adding the&nbsp;ServiceEntry and VirtualService objects  
[Configure Istio for OneAgent traffic in Kubernetes | Dynatrace Docs](https://www.dynatrace.com/support/help/setup-and-configuration/setup-on-container-platforms/kubernetes/configure-istio-for-oneagent-traffic-in-kubernetes#tabgroup--endpoints--saas)

Might help someone

---

<div class="post-metadata">

**Author:** ![Starhut](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Starhut](https://community.dynatrace.com/u/Starhut)\
**Post date:** [May 10, 2022, 8:40am UTC](https://community.dynatrace.com/t/storing-dynatrace-image-in-private-registry/34536/10 "2022-05-10T08:40:10Z")

</div>

In the end, we generated a certificate with san.cnf, reload into the server and able to resolve the issue.
