X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-platform%2F50-RIC-Platform%2Fhelm%2Fe2term%2Ftemplates%2Fdeployment.yaml;h=03d6603556cf75d5f8d4baa961da38dc654c985c;hb=2df61c2fcf64b32ecf7f064ef9cbbe6b54a15bc0;hp=c090c36464e5941b130b65db0951667b00fb5b3c;hpb=431ae3c7eab922223215b52f2a347029eb95335b;p=it%2Fdep.git diff --git a/ric-platform/50-RIC-Platform/helm/e2term/templates/deployment.yaml b/ric-platform/50-RIC-Platform/helm/e2term/templates/deployment.yaml index c090c364..03d66035 100644 --- a/ric-platform/50-RIC-Platform/helm/e2term/templates/deployment.yaml +++ b/ric-platform/50-RIC-Platform/helm/e2term/templates/deployment.yaml @@ -19,9 +19,9 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "common.deploymentname.e2term" . }} - namespace: {{ include "common.namespace" . }} + namespace: {{ include "common.namespace.platform" . }} labels: - app: {{ include "common.namespace" . }}-{{ include "common.name" . }} + app: {{ include "common.namespace.platform" . }}-{{ include "common.name.e2term" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} @@ -29,43 +29,43 @@ spec: replicas: {{ .Values.e2term.replicaCount }} selector: matchLabels: - app: {{ include "common.namespace" . }}-{{ include "common.name" . }} + app: {{ include "common.namespace.platform" . }}-{{ include "common.name.e2term" . }} release: {{ .Release.Name }} template: metadata: + {{- if .Values.e2term.annotations }} + annotations: + {{- .Values.e2term.annotations | nindent 8 -}} + {{ end }} labels: - app: {{ include "common.namespace" . }}-{{ include "common.name" . }} + app: {{ include "common.namespace.platform" . }}-{{ include "common.name.e2term" . }} release: {{ .Release.Name }} spec: - hostname: {{ .Chart.Name }} - hostNetwork: true + hostname: {{ include "common.name.e2term" . }} + hostNetwork: {{ .Values.e2term.hostnetworkmode }} dnsPolicy: ClusterFirstWithHostNet imagePullSecrets: - name: {{ include "common.repositoryCred" . }} containers: - - name: {{ .Chart.Name }} + - name: {{ include "common.containername.e2term" . }} image: {{ include "common.repository" . }}/{{ .Values.e2term.image.name }}:{{ .Values.e2term.image.tag }} imagePullPolicy: {{ include "common.pullPolicy" . }} volumeMounts: - mountPath: /opt/e2/router.txt name: local-router-file subPath: router.txt - env: - - name: sctp - value: "5577" - - name: nano - value: "{{ .Values.e2term.service.nano.port }}" - - name: print - value: "{{ .Values.e2term.env.print }}" - - name: RMR_RTG_SVC - value: "{{ .Values.e2term.env.RMR_RTG_SVC }}" + envFrom: + - configMapRef: + name: {{ include "common.configmapname.e2term" . }}-env ports: - - name: {{ .Values.e2term.service.nano.name }} - containerPort: {{ .Values.e2term.service.nano.port }} + - name: "rmrroute" + containerPort: {{ include "common.serviceport.e2term.rmr.route" . }} + - name: "rmrdata" + containerPort: {{ include "common.serviceport.e2term.rmr.data" . }} stdin: true tty: true securityContext: - privileged: true + privileged: {{ .Values.e2term.privilegedmode }} volumes: - name: local-router-file configMap: