fix liveness protocol

This commit is contained in:
root
2022-02-24 18:04:05 +00:00
parent a293d7a6b4
commit 5ac9d188b7

View File

@@ -183,7 +183,11 @@ spec:
livenessProbe:
httpGet:
path: {{ .Values.livenessProbe.path }}
{{- if (or .Values.certificates.customCAs .Values.certificates.customCertificate.certificateSecret) }}
scheme: HTTPS
{{- else }}
scheme: HTTP
{{- end }}
port: https
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
@@ -197,7 +201,11 @@ spec:
readinessProbe:
httpGet:
path: {{ .Values.readinessProbe.path }}
{{- if (or .Values.certificates.customCAs .Values.certificates.customCertificate.certificateSecret) }}
scheme: HTTPS
{{- else }}
scheme: HTTP
{{- end }}
port: https
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
@@ -211,7 +219,11 @@ spec:
startupProbe:
httpGet:
path: {{ .Values.startupProbe.path }}
{{- if (or .Values.certificates.customCAs .Values.certificates.customCertificate.certificateSecret) }}
scheme: HTTPS
{{- else }}
scheme: HTTP
{{- end }}
port: https
httpHeaders:
- name: Host