blob: 667ccc6251b98094acb7acbdf488f9ab426c8550 [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
vasundhra86243b72017-11-22 11:56:23 +000023 - pap
vasundhra86243b72017-11-22 11:56:23 +000024 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 Khindad6ea9872017-06-24 11:49:37 -040033 containers:
34 - command:
35 - /bin/bash
36 - ./do-start.sh
37 - brmsgw
Eric Aucdaafde2017-08-31 16:18:11 -040038 image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion}}"
kerenj3b697f62017-08-23 11:21:21 +000039 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 name: brmsgw
41 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030042 - mountPath: /etc/localtime
43 name: localtime
44 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040045 - mountPath: /tmp/policy-install/config
46 name: pe
47 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030048 - name: localtime
49 hostPath:
50 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040051 - name: pe
vaibhav_16dec8de39a72018-01-17 12:22:52 +000052 configMap:
53 name: policy-dep-pe-configmap
54 defaultMode: 0755
Borislav Glozman5197e2e2017-07-24 10:45:28 +030055 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000056 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhra86243b72017-11-22 11:56:23 +000057#{{ end }}