Skip to content

Commit f19b25d

Browse files
more fuzz
Signed-off-by: Adrian Cole <[email protected]>
1 parent bcf6520 commit f19b25d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

k8s/k8s-manifest-elastic.yml

+14
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,20 @@ spec:
120120
labels:
121121
app: kibana
122122
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;
123137
containers:
124138
- name: kibana
125139
image: docker.elastic.co/kibana/kibana:9.0.0

0 commit comments

Comments
 (0)