mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Set liveness probe to use jps and readiness to tcpSocket (#4093)
This commit is contained in:
committed by
k8s-ci-robot
parent
30f24eebd9
commit
86e1f83ab1
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user