yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disablePolicyBrmsgw }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: brmsgw |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}-policy" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
| 8 | replicas: 1 |
| 9 | selector: |
| 10 | matchLabels: |
| 11 | app: brmsgw |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: brmsgw |
| 16 | name: brmsgw |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 17 | spec: |
vasundhra | 86243b7 | 2017-11-22 11:56:23 +0000 | [diff] [blame] | 18 | initContainers: |
| 19 | - command: |
| 20 | - /root/ready.py |
| 21 | args: |
| 22 | - --container-name |
vasundhra | 86243b7 | 2017-11-22 11:56:23 +0000 | [diff] [blame] | 23 | - pap |
vasundhra | 86243b7 | 2017-11-22 11:56:23 +0000 | [diff] [blame] | 24 | env: |
| 25 | - name: NAMESPACE |
| 26 | valueFrom: |
| 27 | fieldRef: |
| 28 | apiVersion: v1 |
| 29 | fieldPath: metadata.namespace |
| 30 | image: "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}" |
| 31 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 32 | name: brmsgw-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 33 | containers: |
| 34 | - command: |
| 35 | - /bin/bash |
| 36 | - ./do-start.sh |
| 37 | - brmsgw |
Eric Au | cdaafde | 2017-08-31 16:18:11 -0400 | [diff] [blame] | 38 | image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion}}" |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 39 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 40 | name: brmsgw |
| 41 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 42 | - mountPath: /etc/localtime |
| 43 | name: localtime |
| 44 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 45 | - mountPath: /tmp/policy-install/config |
| 46 | name: pe |
| 47 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 48 | - name: localtime |
| 49 | hostPath: |
| 50 | path: /etc/localtime |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 51 | - name: pe |
| 52 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 53 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/ |
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" |
vasundhra | 86243b7 | 2017-11-22 11:56:23 +0000 | [diff] [blame] | 56 | #{{ end }} |