i set bootstrap passoword using enviroment variable.
application work fine .but when i change password of elastic user using kibana
error comes
Kibana status is Red
my elasticsearch yaml snippet
containers:
- name: elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.2.0
resources:
limits:
cpu: 1000m
requests:
cpu: 100m
ports:
- containerPort: 9200
name: rest
protocol: TCP
- containerPort: 9300
name: inter-node
protocol: TCP
volumeMounts:
- name: data
mountPath: /usr/share/elasticsearch/data
- name: elasticsearch-yaml
mountPath: /usr/share/elasticsearch/config/elasticsearch.yml
- name: path-repo
mountPath: /usr/share/elasticsearch/config/elastic-certificates.p12
env:
- name: cluster.name
value: k8s-logs
- name: node.name
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: discovery.seed_hosts
value: "es-cluster-0.elasticsearch"
- name: cluster.initial_master_nodes
value: "es-cluster-0"
- name: ES_JAVA_OPTS
value: "-Xms256m -Xmx256m"
- name: ELASTIC_PASSWORD
value: "elastic"
my kibana yaml snippet
server.name: kibana
server.host: "0"
elasticsearch.hosts: [ "http://10.109.226.97:9200" ]
#xpack.monitoring.ui.container.elasticsearch.enabled: true
elasticsearch.username: "elastic"
elasticsearch.password: "elastic"
i think this happens because elastic password define in kibana.yml
any solution for this to change everything in runtime