# How to remove a default configuration in the elasticsearch.yml file?

**URL:** <https://discuss.elastic.co/t/how-to-remove-a-default-configuration-in-the-elasticsearch-yml-file/354634>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [March 4, 2024, 12:15pm UTC](https://discuss.elastic.co/t/how-to-remove-a-default-configuration-in-the-elasticsearch-yml-file/354634 "2024-03-04T12:15:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wangxr1985](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wangxr1985/32/117798_2.png) [@wangxr1985](https://discuss.elastic.co/u/wangxr1985)\
**Post date:** [March 4, 2024, 12:15pm UTC](https://discuss.elastic.co/t/how-to-remove-a-default-configuration-in-the-elasticsearch-yml-file/354634/1 "2024-03-04T12:15:27Z")

</div>

In the elasticsearch.yml file of the pod created by ECK, there is a default configuration as follows:

```auto
xpack:
    security:
        authc:
            realms:
                file:
                    file1:
                        order: -100
                native:
                    native1:
                        order: -99
            reserved_realm:
                enabled: "false"
        enabled: "true"
        http:
            ssl:
                certificate: /usr/share/elasticsearch/config/http-certs/tls.crt
                certificate_authorities: /usr/share/elasticsearch/config/http-certs/ca.crt
                enabled: false
                key: /usr/share/elasticsearch/config/http-certs/tls.key
        transport:
            ssl:
                certificate: /usr/share/elasticsearch/config/node-transport-cert/transport.tls.crt
                certificate_authorities:
                    - /usr/share/elasticsearch/config/transport-certs/ca.crt
                    - /usr/share/elasticsearch/config/transport-remote-certs/ca.crt
                enabled: false
                key: /usr/share/elasticsearch/config/node-transport-cert/transport.tls.key
                verification_mode: certificate

```

If I make the following configuration in the k8s yaml file, I can override it with my own specified values.

```auto
spec:
  version: 7.11.1
  nodeSets:
  - name: master
    count: 3
    config:
      node.master: true
      node.data: false
      node.ingest: true
      xpack.security.transport.ssl.certificate: /usr/share/elasticsearch/config/my_tls.crt
      xpack.security.transport.ssl.certificate_authorities: /usr/share/elasticsearch/config/my_ca.crt
      xpack.security.transport.ssl.key: /usr/share/elasticsearch/config/my_tls.key

```

But if I want to remove these configurations, how should I set it?

---

<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:** [April 1, 2024, 12:15pm UTC](https://discuss.elastic.co/t/how-to-remove-a-default-configuration-in-the-elasticsearch-yml-file/354634/2 "2024-04-01T12:15:48Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
