X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Fdbaas%2Ftemplates%2Fstatefulset.yaml;h=9e682e317f33040d26a5cd8b54fda9283f3ab77e;hb=HEAD;hp=217f22b8255ab0abf77208697b3ae2cd0fe2a533;hpb=f882a9b97ac9dec5dfc2468f3150911e296132dc;p=ric-plt%2Fric-dep.git diff --git a/helm/dbaas/templates/statefulset.yaml b/helm/dbaas/templates/statefulset.yaml index 217f22b..9e682e3 100644 --- a/helm/dbaas/templates/statefulset.yaml +++ b/helm/dbaas/templates/statefulset.yaml @@ -89,6 +89,7 @@ spec: - name: data mountPath: /data {{- end }} + shareProcessNamespace: true containers: - name: {{ include "common.containername.dbaas" . }}-redis image: {{ include "common.dockerregistry.url" $ctx }}/{{ .Values.dbaas.image.name }}:{{ .Values.dbaas.image.tag }} @@ -106,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: @@ -114,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 }} @@ -137,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: @@ -145,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