blob: 07cd334879b29bb53cef457e5c0c12b0f4cc4b73 [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
16 annotations:
17 pod.beta.kubernetes.io/init-containers: '[
18 {
19 "args": [
20 "--container-name",
21 "mariadb"
22 ],
23 "command": [
24 "/root/ready.py"
25 ],
26 "env": [
27 {
28 "name": "NAMESPACE",
29 "valueFrom": {
30 "fieldRef": {
31 "apiVersion": "v1",
32 "fieldPath": "metadata.namespace"
33 }
34 }
35 }
36 ],
Eric Aucdaafde2017-08-31 16:18:11 -040037 "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}",
kerenj3b697f62017-08-23 11:21:21 +000038 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040039 "name": "nexus-readiness"
40 }
41 ]'
42 spec:
43 containers:
Mandeep Khinda12610242017-09-14 11:37:33 +000044 - image: "{{ .Values.image.policyNexus }}:{{ .Values.image.policyNexusVersion }}"
kerenj3b697f62017-08-23 11:21:21 +000045 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040046 name: nexus
yuryn8b3bc5a2017-09-13 19:21:03 +030047 volumeMounts:
48 - name: localtime
49 mountPath: /etc/localtime
50 readOnly: true
51 volumes:
52 - name: localtime
53 hostPath:
54 path: /etc/localtime
Borislav Glozman5197e2e2017-07-24 10:45:28 +030055 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000056 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030057#{{ end }}