X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-infra%2F10-Nexus%2Fhelm%2Ftemplates%2Fdeployment.yaml;h=f76899f2a3227862b7a19f690bdf930f9143c61e;hb=112e73d383b26192fea6e320ef3de6ef6bfdca0a;hp=65c5c235faa5bda25efcb211f79af73fb633c146;hpb=7f1e409379856025977fc8a6ea04ddb215f21a13;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 65c5c235..f76899f2 100644 --- a/ric-infra/10-Nexus/helm/templates/deployment.yaml +++ b/ric-infra/10-Nexus/helm/templates/deployment.yaml @@ -18,48 +18,48 @@ 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 - # livenessProbe: - # httpGet: - # path: / - # port: nexus -# readinessProbe: -# httpGet: -# path: / -# port: http -# volumes: -# - name: certs -# secret: -# secretName: {{ template "nexus.name" . }}-certs + volumeMounts: + - name: nexus-config + mountPath: /nexus-data + volumes: + - name: nexus-config + persistentVolumeClaim: + claimName: pvc-{{ include "common.name.nexus" . }}