20 Jul 2023 09:47 PM - edited 24 Jul 2023 07:13 PM
Error "failed calling webhook "webhook.dynatrace.com": failed to call webhook: Post "https://dynatrace-webhook.dynatrace.svc:443/validate?timeout=2s": no endpoints available for service "dynatrace-webhook"" for field "undefined".
Currently, can't create a DynaKube object in OpenShift using the Dynatrace Operator v0.12.0
Any idea how to fix this?
Solved! Go to Solution.
20 Jul 2023 09:53 PM
Hi @ijhunter please execute:
oc -n dynatrace wait pod --for=condition=ready --selector=app.kubernetes.io/name=dynatrace-operator,app.kubernetes.io/component=webhook --timeout=300s
the output (if everything goes right should be "conditions met" twice)
If error persists be sure you don't have other APM tools, in a client I faced the same problem but they have other tool, and that's causing the error in the webhook. Hope it helps
20 Jul 2023 10:26 PM - edited 24 Jul 2023 07:13 PM
For assistance please refer to Create user-generated access tokens.
$ oc -n <project> create secret generic dynakube --from-literal="apiToken=API_TOKEN" --from-literal="paasToken=PAAS_TOKEN"
Where do you get the platform as a servcie token in dynatrace?
20 Jul 2023 10:38 PM
17 Oct 2023 04:37 AM
Thanks. I ran across this error in GKE, and after waiting for the above scriplet to complete, I was able to rerun kubectl apply with all resources successfully created.