blob: 2db40b2763553027b333151a3a1e7d3b2a1a12c4 [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:
vaibhav_16decf785cf32018-02-15 10:15:44 +00008 replicas: {{ .Values.nexusReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009 selector:
10 matchLabels:
11 app: nexus
12 template:
13 metadata:
14 labels:
15 app: nexus
16 name: nexus
Mandeep Khindad6ea9872017-06-24 11:49:37 -040017 spec:
vasundhra86243b72017-11-22 11:56:23 +000018 initContainers:
19 - command:
20 - /root/ready.py
21 args:
22 - --container-name
23 - mariadb
24 env:
25 - name: NAMESPACE
26 valueFrom:
27 fieldRef:
28 apiVersion: v1
29 fieldPath: metadata.namespace
30 image: "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}"
31 imagePullPolicy: {{ .Values.pullPolicy }}
32 name: nexus-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040033 containers:
Mandeep Khinda12610242017-09-14 11:37:33 +000034 - image: "{{ .Values.image.policyNexus }}:{{ .Values.image.policyNexusVersion }}"
kerenj3b697f62017-08-23 11:21:21 +000035 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040036 name: nexus
yuryn8b3bc5a2017-09-13 19:21:03 +030037 volumeMounts:
38 - name: localtime
39 mountPath: /etc/localtime
40 readOnly: true
41 volumes:
42 - name: localtime
43 hostPath:
44 path: /etc/localtime
Borislav Glozman5197e2e2017-07-24 10:45:28 +030045 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000046 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhra86243b72017-11-22 11:56:23 +000047#{{ end }}