From fbfd0efe8c7a8ca4397e38229a900998e275557a Mon Sep 17 00:00:00 2001 From: kota2and3kan <47254383+kota2and3kan@users.noreply.github.com> Date: Fri, 22 Mar 2024 15:54:12 +0900 Subject: [PATCH] Add if statement for overrideAuthority configuration --- .../templates/scalardb-cluster/deployment.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/scalardb-cluster/templates/scalardb-cluster/deployment.yaml b/charts/scalardb-cluster/templates/scalardb-cluster/deployment.yaml index 867a1ac9..7c3ce727 100644 --- a/charts/scalardb-cluster/templates/scalardb-cluster/deployment.yaml +++ b/charts/scalardb-cluster/templates/scalardb-cluster/deployment.yaml @@ -63,28 +63,32 @@ spec: exec: command: - /usr/local/bin/grpc_health_probe - - -addr=:60053 + - -addr=localhost:60053 {{- if .Values.scalardbCluster.tls.enabled }} - -tls {{- if .Values.scalardbCluster.tls.caRootCertSecret }} - -tls-ca-cert=/tls/certs/ca-root-cert.pem {{- end }} + {{- if .Values.scalardbCluster.tls.overrideAuthority }} - -tls-server-name={{ .Values.scalardbCluster.tls.overrideAuthority }} {{- end }} + {{- end }} failureThreshold: 60 periodSeconds: 5 livenessProbe: exec: command: - /usr/local/bin/grpc_health_probe - - -addr=:60053 + - -addr=localhost:60053 {{- if .Values.scalardbCluster.tls.enabled }} - -tls {{- if .Values.scalardbCluster.tls.caRootCertSecret }} - -tls-ca-cert=/tls/certs/ca-root-cert.pem {{- end }} + {{- if .Values.scalardbCluster.tls.overrideAuthority }} - -tls-server-name={{ .Values.scalardbCluster.tls.overrideAuthority }} {{- end }} + {{- end }} failureThreshold: 3 periodSeconds: 10 successThreshold: 1