blob: de067b162f72430e6d84a6111eb256d7dcadb5bc [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:
43 - command:
44 - /bin/bash
45 - -c
46 - bash -c "/opt/nexus/nexus-2.14.2-01/bin/nexus start && sleep 1000d"
Eric Aucdaafde2017-08-31 16:18:11 -040047 image: "{{ .Values.image.policyNexus }}:{{ .Values.image.policyNexusVersion }}"
kerenj3b697f62017-08-23 11:21:21 +000048 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040049 name: nexus
Borislav Glozman5197e2e2017-07-24 10:45:28 +030050 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000051 - name: "{{ .Values.nsPrefix }}-docker-registry-key"