# Elastic-webhook-service not found

**URL:** <https://discuss.elastic.co/t/elastic-webhook-service-not-found/191233>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [July 18, 2019, 3:48pm UTC](https://discuss.elastic.co/t/elastic-webhook-service-not-found/191233 "2019-07-18T15:48:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![t638403](https://avatars.discourse-cdn.com/v4/letter/t/a3d4f5/32.png) [@t638403](https://discuss.elastic.co/u/t638403)\
**Post date:** [July 18, 2019, 3:48pm UTC](https://discuss.elastic.co/t/elastic-webhook-service-not-found/191233/1 "2019-07-18T15:48:14Z")

</div>

Hi,

My elastic web hook service does not seem to work.

I followed the guide for installing elk via operator using this guide: [https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-quickstart.html)

But I have been so stupid to do the following.

I downloaded the custom resource definitions and changed the image `docker.elastic.co/eck/eck-operator:0.8.1` to `docker.elastic.co/eck/eck-operator:0.9.0-rc2` and tried to deploy elasticsearch which kind of worked.

However, when I tried to delete elasticsearch using `kubectl delete -f ...` I noticed that nothing changed. So I deleted the secrets and services manually.

I changed the image back to `0.8.1` and tried to add the custom resources again, but i get this now:  
`Error from server (InternalError): error when creating "custom-resource-definition.elastic-system.yml": Internal error occurred: failed calling webhook "validation.license.elastic.co": Post https://elastic-webhook-service.elastic-system.svc:443/validate-secrets?timeout=30s: service "elastic-webhook-service" not found`

Any help to fix this mess I created would be endlessly appreciated!

---

<div class="post-metadata">

**Author:** ![Anya\_Sabo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anya_sabo/32/49903_2.png) [@Anya\_Sabo](https://discuss.elastic.co/u/Anya_Sabo)\
**Post date:** [July 18, 2019, 4:08pm UTC](https://discuss.elastic.co/t/elastic-webhook-service-not-found/191233/2 "2019-07-18T16:08:54Z")

</div>

Hello,  
Is the operator up and running successfully? If not, it looks like you might have the admission webhook still defined, but the operator (which services the webhook) does not exist. You can confirm its existence with  
`kubectl get validatingwebhookconfigurations.admissionregistration.k8s.io`  
and you should see one named `validating-webhook-configuration`. If so you can delete it, redeploy the operator, and the webhook will be re-created when the new operator is deployed. Hope this helps

---

<div class="post-metadata">

**Author:** ![t638403](https://avatars.discourse-cdn.com/v4/letter/t/a3d4f5/32.png) [@t638403](https://discuss.elastic.co/u/t638403)\
**Post date:** [July 23, 2019, 3:06pm UTC](https://discuss.elastic.co/t/elastic-webhook-service-not-found/191233/3 "2019-07-23T15:06:48Z")

</div>

Thanks for the quick response! I installed the complete k8s cluster again so I can no longer confirm your solution.

In my search for a solution I did look into this file though and it was the case that the web hook was defined there while I suspected it was no longer served. But since a few other entries where defined there I was afraid that I would break more than I would fix. For what its worth...

Anyway, thanks again!

---

<div class="post-metadata">

**Author:** ![Anya\_Sabo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anya_sabo/32/49903_2.png) [@Anya\_Sabo](https://discuss.elastic.co/u/Anya_Sabo)\
**Post date:** [July 23, 2019, 5:41pm UTC](https://discuss.elastic.co/t/elastic-webhook-service-not-found/191233/4 "2019-07-23T17:41:41Z")

</div>

Got it, thanks for following up. We've made some changes that will be in the next release that should resolve that particular issue (if that was indeed the root cause for you).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 4, 2022, 7:17am UTC](https://discuss.elastic.co/t/elastic-webhook-service-not-found/191233/5 "2022-11-04T07:17:32Z")

</div>


