Skip to content

Commit 8b19999

Browse files
committed
Fix apm-server args
1 parent 74d3f31 commit 8b19999

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

k8s/k8s-manifest-elastic.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -172,26 +172,28 @@ spec:
172172
- |
173173
echo "Waiting for kibana to be available";
174174
until curl -s http://kibana:5601/api/status | grep -q 'available'; do sleep 5; done;
175+
echo "Found kibana";
175176
containers:
176177
- name: apm-server
177178
image: docker.elastic.co/apm/apm-server:8.17.2
178179
ports:
179180
- containerPort: 8200
180-
env:
181-
- name: apm-server.kibana.enabled
182-
value: "true"
183-
- name: apm-server.kibana.host
184-
value: http://kibana:5601
185-
- name: apm-server.kibana.username
186-
value: elastic
187-
- name: apm-server.kibana.password
188-
value: elastic
189-
- name: output.elasticsearch.hosts
190-
value: http://elasticsearch:9200
191-
- name: output.elasticsearch.username
192-
value: elastic
193-
- name: output.elasticsearch.password
194-
value: elastic
181+
command:
182+
- /usr/local/bin/docker-entrypoint
183+
- -E
184+
- setup.kibana.enabled=true
185+
- -E
186+
- setup.kibana.host=kibana:5601
187+
- -E
188+
- setup.kibana.username=elastic
189+
- -E
190+
- setup.kibana.password=elastic
191+
- -E
192+
- output.elasticsearch.hosts=[elasticsearch:9200]
193+
- -E
194+
- output.elasticsearch.username=elastic
195+
- -E
196+
- output.elasticsearch.password=elastic
195197
readinessProbe:
196198
tcpSocket:
197199
port: 8200

0 commit comments

Comments
 (0)