blob: df5d888165a8ca9fb61016e255239461a1cf4df4 [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
17 annotations:
18 pod.beta.kubernetes.io/init-containers: '[
19 {
20 "args": [
21 "--container-name",
22 "mariadb",
23 "--container-name",
24 "nexus",
25 "--container-name",
26 "pap",
27 "--container-name",
Eric Aucdaafde2017-08-31 16:18:11 -040028 "pdp"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040029 ],
30 "command": [
31 "/root/ready.py"
32 ],
33 "env": [
34 {
35 "name": "NAMESPACE",
36 "valueFrom": {
37 "fieldRef": {
38 "apiVersion": "v1",
39 "fieldPath": "metadata.namespace"
40 }
41 }
42 }
43 ],
Eric Aucdaafde2017-08-31 16:18:11 -040044 "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}",
kerenj3b697f62017-08-23 11:21:21 +000045 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040046 "name": "brmsgw-readiness"
47 }
48 ]'
49 spec:
50 containers:
51 - command:
52 - /bin/bash
53 - ./do-start.sh
54 - brmsgw
Eric Aucdaafde2017-08-31 16:18:11 -040055 image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion}}"
kerenj3b697f62017-08-23 11:21:21 +000056 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040057 name: brmsgw
58 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030059 - mountPath: /etc/localtime
60 name: localtime
61 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040062 - mountPath: /tmp/policy-install/config
63 name: pe
64 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030065 - name: localtime
66 hostPath:
67 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040068 - name: pe
69 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000070 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
Borislav Glozman5197e2e2017-07-24 10:45:28 +030071 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000072 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030073#{{ end }}