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", |
| 27 | "pdp", |
| 28 | "--container-name", |
| 29 | "pypdp" |
| 30 | ], |
| 31 | "command": [ |
| 32 | "/root/ready.py" |
| 33 | ], |
| 34 | "env": [ |
| 35 | { |
| 36 | "name": "NAMESPACE", |
| 37 | "valueFrom": { |
| 38 | "fieldRef": { |
| 39 | "apiVersion": "v1", |
| 40 | "fieldPath": "metadata.namespace" |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | ], |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 45 | "image": "{{ .Values.image.readiness }}", |
| 46 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 47 | "name": "brmsgw-readiness" |
| 48 | } |
| 49 | ]' |
| 50 | spec: |
| 51 | containers: |
| 52 | - command: |
| 53 | - /bin/bash |
| 54 | - ./do-start.sh |
| 55 | - brmsgw |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 56 | image: {{ .Values.image.policyPe }} |
| 57 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 58 | name: brmsgw |
| 59 | volumeMounts: |
| 60 | - mountPath: /tmp/policy-install/config |
| 61 | name: pe |
| 62 | volumes: |
| 63 | - name: pe |
| 64 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 65 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/ |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 66 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 67 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |