X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-infra%2F10-Nexus%2Fhelm%2Ftemplates%2Fdeployment.yaml;fp=ric-infra%2F10-Nexus%2Fhelm%2Ftemplates%2Fdeployment.yaml;h=f76899f2a3227862b7a19f690bdf930f9143c61e;hb=8ae5e5da06fcdfe30d719497ecbb4b41bf286df7;hp=2ba358c23826ebb7747a55e0cc1dc676559ad552;hpb=cca6ad5be1ba8679874c24a5b1c628055cd1eac8;p=it%2Fdep.git diff --git a/ric-infra/10-Nexus/helm/templates/deployment.yaml b/ric-infra/10-Nexus/helm/templates/deployment.yaml index 2ba358c2..f76899f2 100644 --- a/ric-infra/10-Nexus/helm/templates/deployment.yaml +++ b/ric-infra/10-Nexus/helm/templates/deployment.yaml @@ -18,38 +18,43 @@ apiVersion: apps/v1beta2 kind: Deployment metadata: - name: {{ template "nexus.fullname" . }} + name: {{ include "common.deploymentname.nexus" .}} labels: - app: {{ template "nexus.name" . }} - chart: {{ template "nexus.chart" . }} + app: {{ include "common.namespace" . }}-{{ include "common.name" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: - replicas: {{ .Values.replicaCount }} + replicas: {{ .Values.nexus.replicaCount }} selector: matchLabels: - app: {{ template "nexus.name" . }} + app: {{ include "common.namespace" . }}-{{ include "common.name" . }} release: {{ .Release.Name }} template: metadata: labels: - app: {{ template "nexus.name" . }} + app: {{ include "common.namespace" . }}-{{ include "common.name" . }} release: {{ .Release.Name }} spec: + hostname: {{ .Chart.Name }} + imagePullSecrets: + - name: {{ include "common.repositoryCred" . }} containers: - - name: {{ .Chart.Name }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} + - name: {{ include "common.namespace" . }}-{{ include "common.name" . }} + image: {{ include "common.repository" . }}/{{ .Values.nexus.image.name }}:{{ .Values.nexus.image.tag }} + imagePullPolicy: {{ include "common.pullPolicy" . }} # volumeMounts: #- name: certs # mountPath: /var/run/certs # readOnly: true ports: - name: nexus - containerPort: 8081 + containerPort: {{ .Values.nexus.service.nexus.containerPort }} + #containerPort: 8081 protocol: TCP - name: docker - containerPort: 10001 + containerPort: {{ .Values.nexus.service.docker.containerPort }} + #containerPort: 10001 protocol: TCP volumeMounts: - name: nexus-config @@ -57,18 +62,4 @@ spec: volumes: - name: nexus-config persistentVolumeClaim: - claimName: nexus-claim - - - # livenessProbe: - # httpGet: - # path: / - # port: nexus -# readinessProbe: -# httpGet: -# path: / -# port: http -# volumes: -# - name: certs -# secret: -# secretName: {{ template "nexus.name" . }}-certs + claimName: pvc-{{ include "common.name.nexus" . }}