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

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 image of operator .
And I have deployed elasticsearch from below yml
apiVersion: 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

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

1 Like

Thanks Charith,
It works for me :+1:.