# Operator Deployment - Dynakube error 502

**URL:** <https://community.dynatrace.com/t/operator-deployment-dynakube-error-502/44869>\
**Category:** Container platforms\
**Tags:** openshift, dynatrace-operator\
**Created:** [March 26, 2024, 3:24pm UTC](https://community.dynatrace.com/t/operator-deployment-dynakube-error-502/44869 "2024-03-26T15:24:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SteveO](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@SteveO](https://community.dynatrace.com/u/SteveO)\
**Post date:** [March 26, 2024, 3:24pm UTC](https://community.dynatrace.com/t/operator-deployment-dynakube-error-502/44869/1 "2024-03-26T15:24:53Z")

</div>

Hello, I am having an issue properly deploying dynatrace within our openshift cluster.

I have all the necessary information regarding on how to connect to dynatrace, but unable to successfully deployed the dynakube CR. Here is the yaml that I am attempting to deploy.

apiVersion: [dynatrace.com/v1beta1kind:](http://dynatrace.com/v1beta1kind:) DynaKubemetadata:name: dynakubenamespace: dynatracespec:apiUrl: https://{environmentid}.live.dynatrace.com/apioneAgent:classicFullStack:image: ""tolerations:- effect: NoSchedulekey: [node-role.kubernetes.io/masteroperator:](http://node-role.kubernetes.io/masteroperator:) Exists- effect: NoSchedulekey: [node-role.kubernetes.io/control-planeoperator:](http://node-role.kubernetes.io/control-planeoperator:) ExistsautoUpdate: falseskipCertCheck: truetokens: dynakubeactiveGate:capabilities:- routing- kubernetes-monitoring- dynatrace-apiimage: ""resources:requests:cpu: 500mmemory: 512Milimits:cpu: 1000mmemory: 1.5GiWhen attempting to deploy this yaml, I get an error immediately. That error is:status:activeGate: {}conditions:- lastTransitionTime: '2024-03-26T15:16:52Z’message: "response error, can’t unmarshal json response 502: invalid character ‘\<’ looking for beginning of value\n\tresponse error, can’t unmarshal json response 502: invalid character ‘\<’ looking for beginning of value"reason: TokenErrorstatus: 'False’type: TokensThe weird thing about this is, I have attempted to modify the yaml numerous times, and on two different occasions the CR was proceeding. The second time I was able to get it to attempt to spin up the oneagent pods, there were a few pods that kept getting image pullback errors. I ended up pulling the image to a local registry, tagging appropriately, and adding that image URI to the image section. Since I have done that, I can no longer get the CR to do anything except immediately fail once I deploy it.Any suggestions on how I can successfully deploy dynakube, or pointers in what may be the problem?

---

<div class="post-metadata">

**Author:** ![MaciejNeumann](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@MaciejNeumann](https://community.dynatrace.com/u/MaciejNeumann)\
**Post date:** [July 31, 2024, 9:48am UTC](https://community.dynatrace.com/t/operator-deployment-dynakube-error-502/44869/2 "2024-07-31T09:48:22Z")

</div>

Hello&nbsp;[@SteveO](https://community.dynatrace.com/user/73873),

In this case, it would probably be best to open a support ticket.
