Sure @sebgl
Please find my elastic-cr spec:
#spec:
#minAvailable: 2
#selector:
#matchLabels:
#elasticsearch.k8s.elastic.co/cluster-name: elasticsearch-config
config:
# most Elasticsearch configuration parameters are possible to set, e.g: node.attr.attr_name: attr_value
node.master: true
node.data: false
node.ingest: false
node.ml: true
# Uncomment this parameter you can specify which topology you will like to choose , hot-warm
#node.attr.data: hot
# this allows ES to run on nodes even if their vm.max_map_count has not been increased, at a performance cost
node.store.allow_mmap: false
# Uncomment these two parameters if you wish to specify which zone es node should run in
#node.attr.zone: europe-west3-a
#cluster.routing.allocation.awareness.attributes: zone
# for release 7.4.0 and 7.6.0 uncomment following line for filerealm config
xpack.security.authc.realms.file.file1.order: 0
# for release 6.8.8 uncomment following line for filerealm config
#xpack.security.authc.realms.file1.type: file
#xpack.security.authc.realms.file1.order: 0
http.compression: true
http.compression_level: 9
cloud:
gce:
project_id: <project-id>
zone: ["us-east4-a", "us-east4-b", "us-east4-c"]
discovery:
seed_providers: gce
# get the IP address from network interface 1
#network.host: _gce:privateIp:1_
# # Using GCE internal hostname
network.host: _gce:hostname_
# # shortcut for _gce:privateIp:0_ (recommended)
#network.host: _gce_
the elasticsearch.yml inside pod:
cloud:
gce:
project_id: <project-id>
zone:
- us-east4-a
- us-east4-b
- us-east4-c
cluster:
name: elasticsearch-config
discovery:
seed_providers: gce
http:
compression: true
compression_level: 9
network:
host: 0.0.0.0
publish_host: ${POD_IP}
node:
data: true
ingest: true
master: false
name: ${POD_NAME}
store:
allow_mmap: false
path:
data: /usr/share/elasticsearch/data
logs: /usr/share/elasticsearch/logs
xpack:
security:
authc:
realms:
file:
file1:
order: 0
native:
native1:
order: -99
reserved_realm:
enabled: "false"
enabled: "true"