X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-aux%2F80-Auxiliary-Functions%2Fhelm%2Fdashboard%2Ftemplates%2Fdeployment.yaml;h=adacef25f8031f89fde02c3abaa641514c09e1b7;hb=b70591a65e15f2cc6019d5fb401e1a91aa967b29;hp=f02ddec0206b0df42864b2349ebe599039edf447;hpb=7f1e409379856025977fc8a6ea04ddb215f21a13;p=it%2Fdep.git diff --git a/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/deployment.yaml b/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/deployment.yaml index f02ddec0..adacef25 100644 --- a/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/deployment.yaml +++ b/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/deployment.yaml @@ -18,10 +18,10 @@ apiVersion: apps/v1 kind: Deployment metadata: - name: {{ include "dashboard.fullname" . }} - namespace: {{ include "common.namespace" . }} + name: {{ include "common.deploymentname.dashboard" . }} + namespace: {{ include "common.namespace.aux" . }} labels: - app: {{ include "common.namespace" . }}-{{ include "common.name" . }} + app: {{ include "common.namespace.aux" . }}-{{ include "common.name.dashboard" . }} chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} @@ -29,31 +29,30 @@ spec: replicas: {{ .Values.dashboard.replicaCount }} selector: matchLabels: - app: {{ include "common.namespace" . }}-{{ include "common.name" . }} + app: {{ include "common.namespace.aux" . }}-{{ include "common.name.dashboard" . }} release: {{ .Release.Name }} template: metadata: labels: - app: {{ include "common.namespace" . }}-{{ include "common.name" . }} + app: {{ include "common.namespace.aux" . }}-{{ include "common.name.dashboard" . }} release: {{ .Release.Name }} spec: - hostname: {{ .Chart.Name }} + hostname: {{ include "common.name.dashboard" . }} imagePullSecrets: - name: {{ include "common.repositoryCred" . }} containers: - - name: {{ include "common.namespace" . }}-{{ include "common.name" . }} + - name: {{ include "common.containername.dashboard" . }} image: {{ include "common.repository" . }}/{{ .Values.dashboard.image.name }}:{{ .Values.dashboard.image.tag }} imagePullPolicy: {{ include "common.pullPolicy" . }} ports: - name: http - containerPort: 8080 + containerPort: {{ .Values.dashboard.service.http.containerPort }} protocol: TCP - env: - - name: SPRING_APPLICATION_JSON - valueFrom: - configMapKeyRef: - name: dashboard-configmap - key: springApplication.json + volumeMounts: + - name: application-config + mountPath: /maven/application.properties + subPath: application.properties + readOnly: true livenessProbe: httpGet: path: / @@ -62,3 +61,7 @@ spec: httpGet: path: / port: http + volumes: + - name: application-config + configMap: + name: {{ include "common.configmapname.dashboard" . }}-appconfig