08 Mar 2024 10:00 AM - last edited on 08 Mar 2024 12:02 PM by Karolina_Linda
Hi,
I'm Facing this issue after running kubectl apply -f dynakube.yaml
Error from server (InternalError): error when creating "dynakube.yaml": Internal error occurred: failed calling webhook "webhook.dynatrace.com": failed to call webhook: Post "https://dynatrace-webhook.dynatrace.svc:443/validate?timeout=10s": no endpoints available for service "dynatrace-webhook"
I following this step
after searching they say that I should create firewalls rule ingress to port 8443. I do. but the error still the same.
this is my firewall rule configuration
please help..
08 Mar 2024 10:55 AM
Hello is your port 443 also open ? The url that you gave "https://dynatrace-webhook.dynatrace.svc:443" is set to port 443, check that your firewall allow the 443 port.
08 Mar 2024 11:01 AM
You can find the dynatrace operator network policies/ports here: https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-k8s/reference/network
13 Mar 2024 04:04 AM
Thanks for your reply. I create firewall rule with allow all but unfortunately it didn't work
I'm still facing this error
Error from server (InternalError): error when creating "dynakube.yaml": Internal error occurred: failed calling webhook "webhook.dynatrace.com": failed to call webhook: Post "https://dynatrace-webhook.dynatrace.svc:443/validate?timeout=10s": no endpoints available for service "dynatrace-webhook"
13 Mar 2024 08:52 AM - edited 13 Mar 2024 09:02 AM
Is this Dynatrace Saas Env.
If yes. Can you curl from each node of GCP cluster and see the status as running.
curl -X GET https://{environmentid}.live.dynatrace.com/rest/health
It looks like
mutatingwebhookconfiguration.
and
validatingwebhookconfiguration. service is simply not registering properly.
Follow:
$ kubectl get ValidatingWebhookConfiguration -A
or
$ kubectl describe mutatingwebhookconfigurations,validatingwebhookconfigurations > webhooks.txt
review the error message.
If the webhook is calling a service that doesn't exist, the webhook might be leftover from an incomplete or improper removal of a service. follow the steps to uninstall/delete the service.
$ kubectl delete validatingwebhookconfiguration <NAME>
$ kubectl delete mutatingwebhookconfiguration <NAME>
Ref - webhook debugging
Cheers!
RN
13 Mar 2024 09:49 AM
Hi, @RazTN7
thank you for your reply.
I have curl from every nodes and it running.
I also delete mutatingwebhookconfiguration and validatingwebhookconfiguration.
but error still the same.
13 May 2024 11:55 PM
Hi ,
I have the same problem, the firewall rules are applied, but is not working fine when apply kubectl -n dynatrace wait pod --for=condition=ready --selector=app.kubernetes.io/name=dynatrace-operator,app.kubernetes.io/component=webhook --timeout=300s
kubectl -n dynatrace wait pod --for=condition=ready --selector=app.kubernetes.io/name=dynatrace-operator,app.kubernetes.io/component=webhook --timeout=300stimed out waiting for the condition on pods/dynatrace-webhook-7bb4fbbdcf-svvlc
timed out waiting for the condition on pods/dynatrace-webhook-7bb4fbbdcf-xfq5c
Can you help me?
13 May 2024 11:57 PM
kubectl apply -f dynakube.yaml
secret/gkeproseller created
Error from server (InternalError): error when creating "dynakube.yaml": Internal error occurred: 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"