X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-platform%2F50-RIC-Platform%2Fhelm%2Fappmgr%2Ftemplates%2Fdeployment.yaml;h=ce05589cc18404a34e731305ec7f90f18a81dc33;hb=b361b2091909dc2e77d4d172b95c210f8b1b2abb;hp=b671152350e57749aea2193de6771d0732a0a2ed;hpb=a397399c6ae05e03a4fe112ed1b29ecd311c264f;p=it%2Fdep.git diff --git a/ric-platform/50-RIC-Platform/helm/appmgr/templates/deployment.yaml b/ric-platform/50-RIC-Platform/helm/appmgr/templates/deployment.yaml index b6711523..ce05589c 100644 --- a/ric-platform/50-RIC-Platform/helm/appmgr/templates/deployment.yaml +++ b/ric-platform/50-RIC-Platform/helm/appmgr/templates/deployment.yaml @@ -18,10 +18,10 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: {{ include "appmgr.fullname" . }} - namespace: {{ include "common.namespace" . }} + name: {{ include "common.deploymentname.appmgr" . }} + namespace: {{ include "common.namespace.platform" . }} labels: - app: {{ include "common.namespace" . }}-{{ include "common.name" . }} + app: {{ include "common.namespace.platform" . }}-{{ include "common.name.appmgr" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} @@ -29,30 +29,35 @@ spec: replicas: {{ .Values.appmgr.replicaCount }} selector: matchLabels: - app: {{ include "common.namespace" . }}-{{ include "common.name" . }} + app: {{ include "common.namespace.platform" . }}-{{ include "common.name.appmgr" . }} release: {{ .Release.Name }} - #app.kubernetes.io/name: {{ include "appmgr.name" . }} - #app.kubernetes.io/instance: {{ .Release.Name }} template: metadata: + {{- if .Values.appmgr.annotations }} + annotations: + {{- .Values.appmgr.annotations | nindent 8 -}} + {{ end }} labels: - app: {{ include "common.namespace" . }}-{{ include "common.name" . }} + app: {{ include "common.namespace.platform" . }}-{{ include "common.name.appmgr" . }} release: {{ .Release.Name }} spec: - hostname: {{ .Chart.Name }} - hostAliases: - - ip: "135.207.143.86" - hostnames: - - "helm.ricinfra.local" + hostname: {{ include "common.name.appmgr" . }} + serviceAccountName: {{ include "common.serviceaccountname.appmgr" . }} imagePullSecrets: - name: {{ include "common.repositoryCred" . }} containers: - - name: {{ include "common.namespace" . }}-{{ include "common.name" . }} + - name: {{ include "common.containername.appmgr" . }} image: {{ include "common.repository" . }}/{{ .Values.appmgr.image.name }}:{{ .Values.appmgr.image.tag }} imagePullPolicy: {{ include "common.pullPolicy" . }} ports: - name: http - containerPort: {{ .Values.appmgr.containerPort }} + containerPort: {{ include "common.serviceport.appmgr.http" . }} + protocol: TCP + - name: rmrroute + containerPort: {{ include "common.serviceport.appmgr.rmr.route" . }} + protocol: TCP + - name: rmrdata + containerPort: {{ include "common.serviceport.appmgr.rmr.data" . }} protocol: TCP volumeMounts: - name: config-volume @@ -64,7 +69,7 @@ spec: mountPath: {{ .Values.appmgr.appcertpath }} envFrom: - configMapRef: - name: {{ include "appmgr.fullname" . }}-appenv + name: {{ include "common.configmapname.appmgr" . }}-env livenessProbe: #exec: # command: @@ -85,7 +90,7 @@ spec: volumes: - name: config-volume configMap: - name: {{ include "appmgr.fullname" . }}-appconfig + name: {{ include "common.configmapname.appmgr" . }}-appconfig - name: secret-volume secret: secretName: {{ include "common.helmrepositorycred" . }}