X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-platform%2F50-RIC-Platform%2Fhelm%2Frtmgr%2Ftemplates%2Fdeployment.yaml;h=592309ebf1a3510a7daf5c2e6eeb027f46a4bad8;hb=a9ae10bcbf57300b65fb0f39090034554c59270c;hp=66cef2f5e6eaec0a36406f54f56ab4069b6f1a07;hpb=3803859c341dc62bdcd79ba94be585592a94672b;p=it%2Fdep.git diff --git a/ric-platform/50-RIC-Platform/helm/rtmgr/templates/deployment.yaml b/ric-platform/50-RIC-Platform/helm/rtmgr/templates/deployment.yaml index 66cef2f5..592309eb 100644 --- a/ric-platform/50-RIC-Platform/helm/rtmgr/templates/deployment.yaml +++ b/ric-platform/50-RIC-Platform/helm/rtmgr/templates/deployment.yaml @@ -33,6 +33,10 @@ spec: release: {{ .Release.Name }} template: metadata: + {{- if .Values.rtmgr.annotations }} + annotations: + {{- .Values.rtmgr.annotations | nindent 8 -}} + {{ end }} labels: app: {{ include "common.namespace.platform" . }}-{{ include "common.name.rtmgr" . }} release: {{ .Release.Name }} @@ -45,11 +49,25 @@ spec: image: {{ include "common.repository" . }}/{{ .Values.rtmgr.image.name }}:{{ .Values.rtmgr.image.tag }} imagePullPolicy: {{ include "common.pullPolicy" . }} command: ["/run_rtmgr.sh"] + #command: ["/bin/sh"] + #args: ["-c", "while true; do echo hello; sleep 10;done"] envFrom: - configMapRef: name: {{ include "common.configmapname.rtmgr" . }}-env + volumeMounts: + - mountPath: /cfg + name: rtmgrcfg + readOnly: true ports: - name: "rmrroute" - containerPort: {{ .Values.rtmgr.service.rmr.route.port }} + containerPort: {{ include "common.serviceport.rtmgr.rmr.route" . }} - name: "rmrdata" - containerPort: {{ .Values.rtmgr.service.rmr.data.port }} + containerPort: {{ include "common.serviceport.rtmgr.rmr.data" . }} + volumes: + - name: "rtmgrcfg" + configMap: + name: {{ include "common.configmapname.rtmgr" . }}-rtmgrcfg + items: + - key: rtmgrcfg + path: rtmgr-config.json + mode: 0644