[bitnami/zookeeper] Fix probes when using CentOS images (#3261)

This commit is contained in:
Juan Ariza Toledano
2020-07-29 12:41:36 +02:00
committed by GitHub
parent fcf47417c0
commit 51fc89d725
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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:
+2 -2
View File
@@ -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 }}