blob: e47b0403ca5ae32ba49de4b016078583074ecfb0 [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: brmsgw
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-policy"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
7 replicas: 1
8 selector:
9 matchLabels:
10 app: brmsgw
11 template:
12 metadata:
13 labels:
14 app: brmsgw
15 name: brmsgw
16 annotations:
17 pod.beta.kubernetes.io/init-containers: '[
18 {
19 "args": [
20 "--container-name",
21 "mariadb",
22 "--container-name",
23 "nexus",
24 "--container-name",
25 "pap",
26 "--container-name",
Eric Aucdaafde2017-08-31 16:18:11 -040027 "pdp"
Mandeep Khindad6ea9872017-06-24 11:49:37 -040028 ],
29 "command": [
30 "/root/ready.py"
31 ],
32 "env": [
33 {
34 "name": "NAMESPACE",
35 "valueFrom": {
36 "fieldRef": {
37 "apiVersion": "v1",
38 "fieldPath": "metadata.namespace"
39 }
40 }
41 }
42 ],
Eric Aucdaafde2017-08-31 16:18:11 -040043 "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}",
kerenj3b697f62017-08-23 11:21:21 +000044 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040045 "name": "brmsgw-readiness"
46 }
47 ]'
48 spec:
49 containers:
50 - command:
51 - /bin/bash
52 - ./do-start.sh
53 - brmsgw
Eric Aucdaafde2017-08-31 16:18:11 -040054 image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion}}"
kerenj3b697f62017-08-23 11:21:21 +000055 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056 name: brmsgw
57 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030058 - mountPath: /etc/localtime
59 name: localtime
60 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040061 - mountPath: /tmp/policy-install/config
62 name: pe
63 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030064 - name: localtime
65 hostPath:
66 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040067 - name: pe
68 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000069 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
Borislav Glozman5197e2e2017-07-24 10:45:28 +030070 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000071 - name: "{{ .Values.nsPrefix }}-docker-registry-key"