Set liveness probe to use jps and readiness to tcpSocket (#4093)

This commit is contained in:
Thomas David Dickinson
2018-03-27 04:07:02 -07:00
committed by k8s-ci-robot
parent 30f24eebd9
commit 86e1f83ab1
2 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
description: Apache Kafka is publish-subscribe messaging rethought as a distributed
commit log.
name: kafka
version: 0.4.6
version: 0.4.7
keywords:
- kafka
- zookeeper
+7 -8
View File
@@ -59,17 +59,16 @@ spec:
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
imagePullPolicy: "{{ .Values.imagePullPolicy }}"
livenessProbe:
tcpSocket:
port: 9092
exec:
command:
- sh
- -ec
- /usr/bin/jps | /bin/grep -q SupportedKafka
initialDelaySeconds: 30
timeoutSeconds: 5
readinessProbe:
exec:
command:
- kafka-topics
- --zookeeper
- {{ template "zookeeper.url" . }}
- --list
tcpSocket:
port: kafka
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}