How to override configuration in runtime

How can you use the predefined configuration(elasticsearch.yml) and override just one field (e.g. xpack.security.secureCookies=false?

Hey @Bozo_Tegeltija,

You can override Elasticsearch configuration per group of node in the Elasticsearch specification, ECK defaults still apply.
See https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s-node-configuration.html.

Hi, thanks for quick reply. And how to override default kibana config for xpack? I cannot find it in documentation.

Hi @Bozo_Tegeltija,

Kibana configuration can be specified the same way:

apiVersion: kibana.k8s.elastic.co/v1alpha1
kind: Kibana
metadata:
  name: kibana-sample
spec:
  version: 7.3.0
  nodeCount: 1
  elasticsearchRef:
    name: "elasticsearch-sample"
  config:
    your.config: here
1 Like