blob: 4adb05f63040870e30e4a16af0429e4414fb3fc8 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disablePolicyNexus }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: nexus
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-policy"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
8 selector:
9 matchLabels:
10 app: nexus
11 template:
12 metadata:
13 labels:
14 app: nexus
15 name: nexus
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016 spec:
vasundhra86243b72017-11-22 11:56:23 +000017 initContainers:
18 - command:
19 - /root/ready.py
20 args:
21 - --container-name
22 - mariadb
23 env:
24 - name: NAMESPACE
25 valueFrom:
26 fieldRef:
27 apiVersion: v1
28 fieldPath: metadata.namespace
29 image: "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}"
30 imagePullPolicy: {{ .Values.pullPolicy }}
31 name: nexus-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040032 containers:
Mandeep Khinda12610242017-09-14 11:37:33 +000033 - image: "{{ .Values.image.policyNexus }}:{{ .Values.image.policyNexusVersion }}"
kerenj3b697f62017-08-23 11:21:21 +000034 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040035 name: nexus
yuryn8b3bc5a2017-09-13 19:21:03 +030036 volumeMounts:
37 - name: localtime
38 mountPath: /etc/localtime
39 readOnly: true
40 volumes:
41 - name: localtime
42 hostPath:
43 path: /etc/localtime
Borislav Glozman5197e2e2017-07-24 10:45:28 +030044 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000045 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhra86243b72017-11-22 11:56:23 +000046#{{ end }}