blob: f777d0cabd40e501ddf0b6bf3e0cf9ec4af71b80 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: nexus
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-policy"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
7 selector:
8 matchLabels:
9 app: nexus
10 template:
11 metadata:
12 labels:
13 app: nexus
14 name: nexus
15 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "mariadb"
21 ],
22 "command": [
23 "/root/ready.py"
24 ],
25 "env": [
26 {
27 "name": "NAMESPACE",
28 "valueFrom": {
29 "fieldRef": {
30 "apiVersion": "v1",
31 "fieldPath": "metadata.namespace"
32 }
33 }
34 }
35 ],
Eric Aucdaafde2017-08-31 16:18:11 -040036 "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}",
kerenj3b697f62017-08-23 11:21:21 +000037 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040038 "name": "nexus-readiness"
39 }
40 ]'
41 spec:
42 containers:
Mandeep Khinda12610242017-09-14 11:37:33 +000043 - image: "{{ .Values.image.policyNexus }}:{{ .Values.image.policyNexusVersion }}"
kerenj3b697f62017-08-23 11:21:21 +000044 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040045 name: nexus
Borislav Glozman5197e2e2017-07-24 10:45:28 +030046 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000047 - name: "{{ .Values.nsPrefix }}-docker-registry-key"