OpenShift fails after agent deployed

Document ID : KB000103713
Last Modified Date : 29/06/2018
Show Technical Document Details
After implementing CA APM OpenShift monitoring,  the Openshift technician is getting this error:
oc create -f caagent-openshift>
Error from server (BadRequest): error when creating "caagent-openshiftmonitor.yml": DaemonSet in version "v1beta1" cannot be handled as a DaemonSet: [pos 337]: json: expect char '"' but got char '['
Error from server (AlreadyExists): error when creating "caagent-openshiftmonitor.yml": deployments.extensions "caagent-deployment" already exists

CA APM 10.7
1. You have to replace all the placeholders like "[AGENTMANAGER_URL]" with the actual values in caagent-openshiftmonitor.yml.

2. run "oc delete deployment caagent-deployment" and "oc delete ds/caagent" before running "oc create -f caagent-openshiftmonitor.yml" again.

Basically, replace all substitutes like connection URL, APIToken , agentManger URL etc and recreate the pod. You can either delete them individually, run oc delete -f caagent-openshiftmonitor.yml, or even you run oc apply to re-create the pods.
Additional Information: