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=f5561d7a38dd4a5ae2ae98954819581ef0091d1b;hb=8c686e8dbc613353518fd823240d6bf17ad6d0a7;hp=a4b311da04c657c86075541f41c160eb32e03e21;hpb=965f7358a315dfd95a4098e0f64ad3368c9c7759;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 a4b311da..f5561d7a 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,39 +29,52 @@ 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: {{ .Values.dashboard.server.port }} + containerPort: {{ include "common.serviceport.dashboard.container" . }} protocol: TCP volumeMounts: - - name: application-config - mountPath: /maven/application.properties + - name: appconfig + mountPath: /config/application.properties subPath: application.properties readOnly: true + - name: appconfig + mountPath: /maven/key.properties + subPath: key.properties + readOnly: true + - name: appconfig + mountPath: /maven/portal.properties + subPath: portal.properties + readOnly: true + - name: dashboard-users + mountPath: /dashboard-data livenessProbe: httpGet: - path: / + path: /api/admin/version port: http readinessProbe: httpGet: - path: / + path: /api/admin/health port: http volumes: - - name: application-config + - name: appconfig configMap: - name: {{ include "dashboard.fullname" . }}-appconfig + name: {{ include "common.configmapname.dashboard" . }}-appconfig + - name: dashboard-users + persistentVolumeClaim: + claimName: pvc-{{ include "common.name.dashboard" . }}