Skip to content

Commit 4611dfd

Browse files
author
Francesco Murdaca
authored
allow-metrics-exporter to check Kafka connection (#1067)
Signed-off-by: Francesco Murdaca <[email protected]>
1 parent e83958e commit 4611dfd

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

metrics-exporter/base/deploymentconfig.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,22 @@ spec:
175175
key: instance-metrics-management-api
176176
- name: WEB_CONCURRENCY
177177
value: "1"
178+
- name: KAFKA_BOOTSTRAP_SERVERS
179+
valueFrom:
180+
configMapKeyRef:
181+
name: kafka
182+
key: kafka-bootstrap-servers
183+
- name: KAFKA_SECURITY_PROTOCOL
184+
valueFrom:
185+
configMapKeyRef:
186+
key: kafka-protocol
187+
name: kafka
188+
- name: KAFKA_SSL_CA_LOCATION
189+
value: "/mnt/secrets/kafka_ca.crt"
190+
volumeMounts:
191+
- name: secrets
192+
mountPath: /mnt/secrets
193+
readOnly: true
178194
ports:
179195
- containerPort: 8080
180196
protocol: TCP
@@ -201,4 +217,11 @@ spec:
201217
initialDelaySeconds: 45
202218
periodSeconds: 10
203219
timeoutSeconds: 10
220+
volumes:
221+
- name: secrets
222+
secret:
223+
secretName: "kafka"
224+
items:
225+
- key: kafka_ca.crt
226+
path: kafka_ca.crt
204227
test: false

0 commit comments

Comments
 (0)