Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: nexus |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 5 | namespace: "{{ .Values.nsPrefix }}-policy" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 6 | spec: |
| 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 Au | cdaafde | 2017-08-31 16:18:11 -0400 | [diff] [blame] | 36 | "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}", |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 37 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 38 | "name": "nexus-readiness" |
| 39 | } |
| 40 | ]' |
| 41 | spec: |
| 42 | containers: |
Mandeep Khinda | 1261024 | 2017-09-14 11:37:33 +0000 | [diff] [blame] | 43 | - image: "{{ .Values.image.policyNexus }}:{{ .Values.image.policyNexusVersion }}" |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 44 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 45 | name: nexus |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 46 | volumeMounts: |
| 47 | - name: localtime |
| 48 | mountPath: /etc/localtime |
| 49 | readOnly: true |
| 50 | volumes: |
| 51 | - name: localtime |
| 52 | hostPath: |
| 53 | path: /etc/localtime |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 54 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 55 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |