Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: brmsgw |
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 | replicas: 1 |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: brmsgw |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: brmsgw |
| 15 | name: brmsgw |
| 16 | annotations: |
| 17 | pod.beta.kubernetes.io/init-containers: '[ |
| 18 | { |
| 19 | "args": [ |
| 20 | "--container-name", |
| 21 | "mariadb", |
| 22 | "--container-name", |
| 23 | "nexus", |
| 24 | "--container-name", |
| 25 | "pap", |
| 26 | "--container-name", |
Eric Au | cdaafde | 2017-08-31 16:18:11 -0400 | [diff] [blame] | 27 | "pdp" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 28 | ], |
| 29 | "command": [ |
| 30 | "/root/ready.py" |
| 31 | ], |
| 32 | "env": [ |
| 33 | { |
| 34 | "name": "NAMESPACE", |
| 35 | "valueFrom": { |
| 36 | "fieldRef": { |
| 37 | "apiVersion": "v1", |
| 38 | "fieldPath": "metadata.namespace" |
| 39 | } |
| 40 | } |
| 41 | } |
| 42 | ], |
Eric Au | cdaafde | 2017-08-31 16:18:11 -0400 | [diff] [blame] | 43 | "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}", |
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": "brmsgw-readiness" |
| 46 | } |
| 47 | ]' |
| 48 | spec: |
| 49 | containers: |
| 50 | - command: |
| 51 | - /bin/bash |
| 52 | - ./do-start.sh |
| 53 | - brmsgw |
Eric Au | cdaafde | 2017-08-31 16:18:11 -0400 | [diff] [blame] | 54 | image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion}}" |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 55 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 56 | name: brmsgw |
| 57 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 58 | - mountPath: /etc/localtime |
| 59 | name: localtime |
| 60 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 61 | - mountPath: /tmp/policy-install/config |
| 62 | name: pe |
| 63 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 64 | - name: localtime |
| 65 | hostPath: |
| 66 | path: /etc/localtime |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 67 | - name: pe |
| 68 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 69 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/ |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 70 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 71 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |