X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=helm%2Fe2mgr%2Ftemplates%2Fdeployment.yaml;h=a4fafa525426d25b57b11a2b866a3fe824985999;hb=dbfb67cc5841f048b0989ed97d0ff7496e6322cf;hp=4719f2cad2b31c76e79bee9f33761e09d6f93071;hpb=54909e62031f5f298fbbe707c8ee1cbc6d2424b7;p=ric-plt%2Fric-dep.git diff --git a/helm/e2mgr/templates/deployment.yaml b/helm/e2mgr/templates/deployment.yaml index 4719f2c..a4fafa5 100644 --- a/helm/e2mgr/templates/deployment.yaml +++ b/helm/e2mgr/templates/deployment.yaml @@ -52,7 +52,7 @@ spec: - "/bin/sh" args: - '-c' - - "redis-cli -h {{ include "common.servicename.dbaas.tcp" . }} -p {{ include "common.serviceport.dbaas.redis" . }} SETNX \"{e2Manager},GENERAL\" \"{\"enableRic\":true}\"" + - "redis-cli -h {{ include "common.servicename.dbaas.tcp" . }} -p {{ include "common.serviceport.dbaas.redis" . }} SETNX \"{e2Manager},GENERAL\" \"{\\\"enableRic\\\":true}\"" containers: - name: {{ include "common.containername.e2mgr" . }} image: {{ include "common.dockerregistry.url" $imagectx }}/{{ .Values.e2mgr.image.name }}:{{ .Values.e2mgr.image.tag }} @@ -80,6 +80,24 @@ spec: tty: true securityContext: privileged: {{ .Values.e2mgr.privilegedmode}} + + {{- if eq .Values.e2mgr.liveness.enabled true }} + livenessProbe: + httpGet: + path: {{ .Values.e2mgr.liveness.api }} + port: {{ include "common.serviceport.e2mgr.http" . }} + initialDelaySeconds: {{ .Values.e2mgr.liveness.initialDelaySeconds }} + periodSeconds: {{ .Values.e2mgr.liveness.periodSeconds }} + {{- end }} + {{- if eq .Values.e2mgr.readiness.enabled true }} + readinessProbe: + httpGet: + path: {{ .Values.e2mgr.readiness.api }} + port: {{ include "common.serviceport.e2mgr.http" . }} + initialDelaySeconds: {{ .Values.e2mgr.liveness.initialDelaySeconds }} + periodSeconds: {{ .Values.e2mgr.liveness.periodSeconds }} + {{- end }} + volumes: - name: local-router-file configMap: