# How can I remove the es-default service installed by cloud-on-k8s

**URL:** <https://discuss.elastic.co/t/how-can-i-remove-the-es-default-service-installed-by-cloud-on-k8s/214358>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [January 9, 2020, 7:32am UTC](https://discuss.elastic.co/t/how-can-i-remove-the-es-default-service-installed-by-cloud-on-k8s/214358 "2020-01-09T07:32:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jone](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@Jone](https://discuss.elastic.co/u/Jone)\
**Post date:** [January 9, 2020, 7:32am UTC](https://discuss.elastic.co/t/how-can-i-remove-the-es-default-service-installed-by-cloud-on-k8s/214358/1 "2020-01-09T07:32:05Z")

</div>

How can I remove the es-default service installed by cloud-on-k8s, or add port to the es-default service?

---

<div class="post-metadata">

**Author:** ![dkow](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dkow/32/47340_2.png) [@dkow](https://discuss.elastic.co/u/dkow)\
**Post date:** [January 9, 2020, 1:15pm UTC](https://discuss.elastic.co/t/how-can-i-remove-the-es-default-service-installed-by-cloud-on-k8s/214358/2 "2020-01-09T13:15:00Z")

</div>

Hi @Jone,

Thanks for your question. We don't allow removing the service as it's used by the operator to talk to the ES, but you can add ports to it as below.

```auto
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
 name: quickstart
spec:
 http:
   service:
     spec:
       ports:
       - name: es
         protocol: TCP
         port: 9200
       - name: other
         protocol: TCP
         port: 9210
...

```

---

<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:39am UTC](https://discuss.elastic.co/t/how-can-i-remove-the-es-default-service-installed-by-cloud-on-k8s/214358/3 "2022-11-04T07:39:59Z")

</div>


