mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-23 12:06:20 +10:00
[bitnami/zookeeper] Fix probes when using CentOS images (#3261)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: zookeeper
|
||||
version: 5.21.0
|
||||
version: 5.21.1
|
||||
appVersion: 3.6.1
|
||||
description: A centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services for distributed applications.
|
||||
keywords:
|
||||
|
||||
@@ -233,7 +233,7 @@ spec:
|
||||
livenessProbe:
|
||||
exec:
|
||||
{{- if not .Values.service.tls.disable_base_client_port }}
|
||||
command: ['/bin/bash', '-c', 'echo "ruok" | nc -w {{ .Values.livenessProbe.probeCommandTimeout }} -q {{ .Values.livenessProbe.probeCommandTimeout }} localhost {{ .Values.service.port }} | grep imok']
|
||||
command: ['/bin/bash', '-c', 'echo "ruok" | timeout {{ .Values.livenessProbe.probeCommandTimeout }} nc -w {{ .Values.livenessProbe.probeCommandTimeout }} localhost {{ .Values.service.port }} | grep imok']
|
||||
{{- else }}
|
||||
command: ['/bin/bash', '-c', 'echo "ruok" | timeout {{ .Values.livenessProbe.probeCommandTimeout }} openssl s_client -quiet -crlf -connect localhost:{{ .Values.service.tls.client_port }} | grep imok']
|
||||
{{- end }}
|
||||
@@ -247,7 +247,7 @@ spec:
|
||||
readinessProbe:
|
||||
exec:
|
||||
{{- if not .Values.service.tls.disable_base_client_port }}
|
||||
command: ['/bin/bash', '-c', 'echo "ruok" | nc -w {{ .Values.readinessProbe.probeCommandTimeout }} -q {{ .Values.readinessProbe.probeCommandTimeout }} localhost {{ .Values.service.port }} | grep imok']
|
||||
command: ['/bin/bash', '-c', 'echo "ruok" | timeout {{ .Values.livenessProbe.probeCommandTimeout }} nc -w {{ .Values.readinessProbe.probeCommandTimeout }} localhost {{ .Values.service.port }} | grep imok']
|
||||
{{- else }}
|
||||
command: ['/bin/bash', '-c', 'echo "ruok" | timeout {{ .Values.readinessProbe.probeCommandTimeout }} openssl s_client -quiet -crlf -connect localhost:{{ .Values.service.tls.client_port }} | grep imok']
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user