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 |
| 23 | - mariadb |
| 24 | - --container-name |
| 25 | - nexus |
| 26 | - --container-name |
| 27 | - pap |
| 28 | - --container-name |
| 29 | - pdp |
| 30 | env: |
| 31 | - name: NAMESPACE |
| 32 | valueFrom: |
| 33 | fieldRef: |
| 34 | apiVersion: v1 |
| 35 | fieldPath: metadata.namespace |
| 36 | image: "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}" |
| 37 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 38 | name: brmsgw-readiness |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 39 | containers: |
| 40 | - command: |
| 41 | - /bin/bash |
| 42 | - ./do-start.sh |
| 43 | - brmsgw |
Eric Au | cdaafde | 2017-08-31 16:18:11 -0400 | [diff] [blame] | 44 | image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion}}" |
kerenj | 3b697f6 | 2017-08-23 11:21:21 +0000 | [diff] [blame] | 45 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 46 | name: brmsgw |
| 47 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 48 | - mountPath: /etc/localtime |
| 49 | name: localtime |
| 50 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 51 | - mountPath: /tmp/policy-install/config |
| 52 | name: pe |
| 53 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 54 | - name: localtime |
| 55 | hostPath: |
| 56 | path: /etc/localtime |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 57 | - name: pe |
| 58 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 59 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/ |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 60 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 61 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
vasundhra | 86243b7 | 2017-11-22 11:56:23 +0000 | [diff] [blame^] | 62 | #{{ end }} |