File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,20 @@ spec:
120
120
labels :
121
121
app : kibana
122
122
spec :
123
+ initContainers :
124
+ # gen-ai assistants in kibana save state in a way that requires system
125
+ # access, so set kibana_system's password to a known value.
126
+ - name : setup-kibana-system-user
127
+ image : docker.elastic.co/elasticsearch/elasticsearch:8.17.2
128
+ command :
129
+ - bash
130
+ - -c
131
+ - |
132
+ echo "Setup the kibana_system password";
133
+ until curl --max-time 1 -s -u "elastic:elastic" \
134
+ -X POST http://elasticsearch.default.svc:9200/_security/user/kibana_system/_password \
135
+ -d "{\"password\":\"elastic\"}" \
136
+ -H "Content-Type: application/json" | grep -q "^{}"; do sleep 5; done;
123
137
containers :
124
138
- name : kibana
125
139
image : docker.elastic.co/kibana/kibana:9.0.0
You can’t perform that action at this time.
0 commit comments