Skip to content

Commit 3867c84

Browse files
authored
Merge pull request #81 from Yolean/kafka-readiness-tcp
Use Kubernetes native TCP readiness probe for kafka
2 parents ece07d5 + b462dac commit 3867c84

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

50kafka.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,9 @@ spec:
6060
cpu: 100m
6161
memory: 512Mi
6262
readinessProbe:
63-
exec:
64-
command:
65-
- /bin/sh
66-
- -c
67-
- 'echo "" | nc -w 1 127.0.0.1 9092'
63+
tcpSocket:
64+
port: 9092
65+
timeoutSeconds: 1
6866
volumeMounts:
6967
- name: config
7068
mountPath: /etc/kafka

0 commit comments

Comments
 (0)