Add Readiness and Liveness definitions for e2term
Issue-ID: RIC-356
Signed-off-by: Fuss, Areli (af732p) <areli.fuss@intl.att.com>
Change-Id: I32ed8fb7c654d5278a6c4821eecc5d99e4a64707
image:
registry: "nexus3.o-ran-sc.org:10002/o-ran-sc"
name: ric-plt-e2mgr
image:
registry: "nexus3.o-ran-sc.org:10002/o-ran-sc"
name: ric-plt-e2mgr
privilegedmode: false
globalRicId:
ricId: "AACCE"
privilegedmode: false
globalRicId:
ricId: "AACCE"
image:
registry: "nexus3.o-ran-sc.org:10002/o-ran-sc"
name: ric-plt-e2
image:
registry: "nexus3.o-ran-sc.org:10002/o-ran-sc"
name: ric-plt-e2
privilegedmode: false
hostnetworkmode: false
privilegedmode: false
hostnetworkmode: false
# limitations under the License. #
################################################################################
{{- $topCtx := . }}
# limitations under the License. #
################################################################################
{{- $topCtx := . }}
+{{- $health := .Values.health }}
{{- range keys .Values.e2term }}
{{- $key := . }}
{{- with index $topCtx.Values.e2term . }}
{{- range keys .Values.e2term }}
{{- $key := . }}
{{- with index $topCtx.Values.e2term . }}
tty: true
securityContext:
privileged: {{ .privilegedmode }}
tty: true
securityContext:
privileged: {{ .privilegedmode }}
+ {{- if eq $health.liveness.enabled true }}
+ readinessProbe:
+ exec:
+ command: [ "/bin/sh", "-c", "{{ $health.readiness.command }}:{{ include "common.serviceport.e2term.rmr.data" . }}" ]
+ initialDelaySeconds: {{ $health.readiness.initialDelaySeconds }}
+ periodSeconds: {{ $health.readiness.periodSeconds }}
+ {{- end }}
+ {{- if eq $health.liveness.enabled true }}
+ livenessProbe:
+ exec:
+ command: [ "/bin/sh", "-c", "{{ $health.liveness.command }}:{{ include "common.serviceport.e2term.rmr.data" . }}" ]
+ initialDelaySeconds: {{ $health.liveness.initialDelaySeconds }}
+ periodSeconds: {{ $health.liveness.periodSeconds }}
+ {{- end }}
{{ if .pizpub.enabled }}
- name: {{ include "common.containername.e2term" $topCtx }}-pizpub
{{- $pizpubimagectx := dict "ctx" $topCtx "defaultregistry" .pizpub.image.registry }}
{{ if .pizpub.enabled }}
- name: {{ include "common.containername.e2term" $topCtx }}-pizpub
{{- $pizpubimagectx := dict "ctx" $topCtx "defaultregistry" .pizpub.image.registry }}
# name: ""
# tag: ""
# registry: ""
# name: ""
# tag: ""
# registry: ""
+
+health:
+ liveness:
+ command: "/opt/e2/rmr_probe -h 0.0.0.0"
+ initialDelaySeconds: 10
+ periodSeconds: 10
+ enabled: true
+
+ readiness:
+ command: "/opt/e2/rmr_probe -h 0.0.0.0"
+ initialDelaySeconds: 15
+ periodSeconds: 10
+ enabled: true