# How to make changes in config elasticsearch.yml from elasticsearch operator

**URL:** <https://discuss.elastic.co/t/how-to-make-changes-in-config-elasticsearch-yml-from-elasticsearch-operator/217840>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [February 4, 2020, 3:11pm UTC](https://discuss.elastic.co/t/how-to-make-changes-in-config-elasticsearch-yml-from-elasticsearch-operator/217840 "2020-02-04T15:11:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![viveknagar](https://avatars.discourse-cdn.com/v4/letter/v/cdc98d/32.png) [@viveknagar](https://discuss.elastic.co/u/viveknagar)\
**Post date:** [February 4, 2020, 3:11pm UTC](https://discuss.elastic.co/t/how-to-make-changes-in-config-elasticsearch-yml-from-elasticsearch-operator/217840/1 "2020-02-04T15:11:10Z")

</div>

Hello ,  
I want to make changes in /usr/share/elasticsearch/config/elasticsearch.yml from elasticsearch operator.  
I am using [docker.elastic.co/eck/eck-operator:1.0.0](http://docker.elastic.co/eck/eck-operator:1.0.0) image of operator .  
And I have deployed elasticsearch from below yml  
apiVersion: [elasticsearch.k8s.elastic.co/v1](http://elasticsearch.k8s.elastic.co/v1)  
kind: Elasticsearch  
metadata:  
name: quickstart  
spec:  
version: 7.5.2  
nodeSets:

- name: default  
count: 1  
podTemplate:  
spec:  
containers:  
- name: elasticsearch  
env:  
- name: ELASTIC\_PASSWORD  
value: "elastic"  
config:  
node.master: true  
node.data: true  
node.ingest: true  
node.store.allow\_mmap: false  
volumeClaimTemplates:
  - metadata:  
name: elasticsearch-data  
spec:  
storageClassName: do-block-storage  
accessModes:
    - ReadWriteOnce  
resources:  
requests:  
storage: 10Gi

Can anyone help me for this

---

<div class="post-metadata">

**Author:** ![charith-elastic](https://avatars.discourse-cdn.com/v4/letter/c/3ec8ea/32.png) [@charith-elastic](https://discuss.elastic.co/u/charith-elastic)\
**Post date:** [February 4, 2020, 3:46pm UTC](https://discuss.elastic.co/t/how-to-make-changes-in-config-elasticsearch-yml-from-elasticsearch-operator/217840/2 "2020-02-04T15:46:05Z")

</div>

Hello,

You can add the settings you want under `spec.nodeSets[*].config` as described here: [https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-node-configuration.html](https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-node-configuration.html)

---

<div class="post-metadata">

**Author:** ![viveknagar](https://avatars.discourse-cdn.com/v4/letter/v/cdc98d/32.png) [@viveknagar](https://discuss.elastic.co/u/viveknagar)\
**Post date:** [February 5, 2020, 8:40am UTC](https://discuss.elastic.co/t/how-to-make-changes-in-config-elasticsearch-yml-from-elasticsearch-operator/217840/3 "2020-02-05T08:40:03Z")

</div>

Thanks Charith,  
It works for me 👍.

---

<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:43am UTC](https://discuss.elastic.co/t/how-to-make-changes-in-config-elasticsearch-yml-from-elasticsearch-operator/217840/4 "2022-11-04T07:43:28Z")

</div>


