# Can I disable the webhook?

**URL:** <https://discuss.elastic.co/t/can-i-disable-the-webhook/226113>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [April 1, 2020, 6:36pm UTC](https://discuss.elastic.co/t/can-i-disable-the-webhook/226113 "2020-04-01T18:36:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![data\_smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/data_smith/32/124122_2.png) [@data\_smith](https://discuss.elastic.co/u/data_smith)\
**Post date:** [April 1, 2020, 6:36pm UTC](https://discuss.elastic.co/t/can-i-disable-the-webhook/226113/1 "2020-04-01T18:36:43Z")

</div>

I'd like to disable the webhook. How do i do that?

---

<div class="post-metadata">

**Author:** ![data\_smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/data_smith/32/124122_2.png) [@data\_smith](https://discuss.elastic.co/u/data_smith)\
**Post date:** [April 1, 2020, 7:04pm UTC](https://discuss.elastic.co/t/can-i-disable-the-webhook/226113/2 "2020-04-01T19:04:31Z")

</div>

It looks like you can add

```
args: ['operator-roles','namespace,global']

```

in your stateful set config for the operator and that'll disable it

---

<div class="post-metadata">

**Author:** ![sebgl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sebgl/32/48702_2.png) [@sebgl](https://discuss.elastic.co/u/sebgl)\
**Post date:** [April 2, 2020, 9:47am UTC](https://discuss.elastic.co/t/can-i-disable-the-webhook/226113/3 "2020-04-02T09:47:04Z")

</div>

@data_smith the easiest way to disable the webhook is to remove its configuration from Kubernetes:

```auto
kubectl delete validatingwebhookconfiguration elastic-webhook.k8s.elastic.co

```

If you want to re-enable it later, just reapply ECK yaml manifests.

---

<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:51am UTC](https://discuss.elastic.co/t/can-i-disable-the-webhook/226113/4 "2022-11-04T07:51:51Z")

</div>


