This patch introduces a new structure of the it/dep repo.
[it/dep.git] / infra / 10-Nexus / helm / templates / deployment.yaml
1 apiVersion: apps/v1beta2
2 kind: Deployment
3 metadata:
4   name: {{ template "nexus.fullname" . }}
5   labels:
6     app: {{ template "nexus.name" . }}
7     chart: {{ template "nexus.chart" . }}
8     release: {{ .Release.Name }}
9     heritage: {{ .Release.Service }}
10 spec:
11   replicas: {{ .Values.replicaCount }}
12   selector:
13     matchLabels:
14       app: {{ template "nexus.name" . }}
15       release: {{ .Release.Name }}
16   template:
17     metadata:
18       labels:
19         app: {{ template "nexus.name" . }}
20         release: {{ .Release.Name }}
21     spec:
22       containers:
23         - name: {{ .Chart.Name }}
24           image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
25           imagePullPolicy: {{ .Values.image.pullPolicy }}
26           #          volumeMounts:
27           #- name: certs
28           #  mountPath: /var/run/certs
29           #  readOnly: true
30           ports:
31             - name: nexus
32               containerPort: 8081
33               protocol: TCP
34             - name: docker
35               containerPort: 10001
36               protocol: TCP
37               #          livenessProbe:
38               #            httpGet:
39               #              path: /
40               #              port: nexus
41 #          readinessProbe:
42 #            httpGet:
43 #              path: /
44 #              port: http
45 #      volumes:
46 #        - name: certs
47 #          secret:
48 #            secretName: {{ template "nexus.name" . }}-certs