blob: 7a1bcdec49583f3cf7c6b17c4cc381ec0e3790ab [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disablePolicyBrmsgw }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: brmsgw
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-policy"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
8 replicas: 1
9 selector:
10 matchLabels:
11 app: brmsgw
12 template:
13 metadata:
14 labels:
15 app: brmsgw
16 name: brmsgw
Mandeep Khindad6ea9872017-06-24 11:49:37 -040017 spec:
vasundhra86243b72017-11-22 11:56:23 +000018 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 Khindad6ea9872017-06-24 11:49:37 -040039 containers:
40 - command:
41 - /bin/bash
42 - ./do-start.sh
43 - brmsgw
Eric Aucdaafde2017-08-31 16:18:11 -040044 image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion}}"
kerenj3b697f62017-08-23 11:21:21 +000045 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040046 name: brmsgw
47 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030048 - mountPath: /etc/localtime
49 name: localtime
50 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040051 - mountPath: /tmp/policy-install/config
52 name: pe
53 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030054 - name: localtime
55 hostPath:
56 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040057 - name: pe
58 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000059 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
Borislav Glozman5197e2e2017-07-24 10:45:28 +030060 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000061 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhra86243b72017-11-22 11:56:23 +000062#{{ end }}