X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Fdbaas%2Ftemplates%2Fstatefulset.yaml;h=9e682e317f33040d26a5cd8b54fda9283f3ab77e;hb=refs%2Fchanges%2F48%2F12148%2F2;hp=4d1593ec05cc7194e7663be850d8480b43d47d3c;hpb=6e02fd8dfc47a1779fb3396e5e2b6567938b46ef;p=ric-plt%2Fric-dep.git diff --git a/helm/dbaas/templates/statefulset.yaml b/helm/dbaas/templates/statefulset.yaml index 4d1593e..9e682e3 100644 --- a/helm/dbaas/templates/statefulset.yaml +++ b/helm/dbaas/templates/statefulset.yaml @@ -107,7 +107,7 @@ spec: command: - /bin/sh - -c - - timeout -t {{ .Values.dbaas.probeTimeout }} redis-cli -p {{ include "common.serviceport.dbaas.redis" . }} ping + - {{ .Values.dbaas.probeTimeoutCommand }} {{ .Values.dbaas.probeTimeout }} redis-cli -p {{ include "common.serviceport.dbaas.redis" . }} ping initialDelaySeconds: 15 periodSeconds: 5 readinessProbe: @@ -115,12 +115,15 @@ spec: command: - /bin/sh - -c - - timeout -t {{ .Values.dbaas.probeTimeout }} redis-cli -p {{ include "common.serviceport.dbaas.redis" . }} ping + - {{ .Values.dbaas.probeTimeoutCommand }} {{ .Values.dbaas.probeTimeout }} redis-cli -p {{ include "common.serviceport.dbaas.redis" . }} ping initialDelaySeconds: 15 periodSeconds: 5 ports: - name: redis containerPort: {{ include "common.serviceport.dbaas.redis" . }} + envFrom: + - configMapRef: + name: {{ include "common.configmapname.dbaas" . }}-appconfig volumeMounts: - mountPath: /data {{- if $.Values.dbaas.enableHighAvailability }} @@ -138,7 +141,7 @@ spec: command: - /bin/sh - -c - - timeout -t {{ .Values.dbaas.probeTimeout }} redis-cli -p {{ include "common.serviceport.dbaas.redis" . }} ping + - {{ .Values.dbaas.probeTimeoutCommand }} {{ .Values.dbaas.probeTimeout }} redis-cli -p {{ include "common.serviceport.dbaas.redis" . }} ping initialDelaySeconds: 15 periodSeconds: 5 readinessProbe: @@ -146,12 +149,15 @@ spec: command: - /bin/sh - -c - - timeout -t {{ .Values.dbaas.probeTimeout }} redis-cli -p {{ include "common.serviceport.dbaas.redis" . }} ping + - {{ .Values.dbaas.probeTimeoutCommand }} {{ .Values.dbaas.probeTimeout }} redis-cli -p {{ include "common.serviceport.dbaas.redis" . }} ping initialDelaySeconds: 15 periodSeconds: 5 ports: - name: sentinel containerPort: {{ include "common.serviceport.dbaas.sentinel" . }} + envFrom: + - configMapRef: + name: {{ include "common.configmapname.dbaas" . }}-appconfig volumeMounts: - mountPath: /data name: data