blob: e535cf230621925b877317f007f78d102ed6447e [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",
27 "pdp",
28 "--container-name",
29 "pypdp"
30 ],
31 "command": [
32 "/root/ready.py"
33 ],
34 "env": [
35 {
36 "name": "NAMESPACE",
37 "valueFrom": {
38 "fieldRef": {
39 "apiVersion": "v1",
40 "fieldPath": "metadata.namespace"
41 }
42 }
43 }
44 ],
kerenj3b697f62017-08-23 11:21:21 +000045 "image": "{{ .Values.image.readiness }}",
46 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040047 "name": "brmsgw-readiness"
48 }
49 ]'
50 spec:
51 containers:
52 - command:
53 - /bin/bash
54 - ./do-start.sh
55 - brmsgw
kerenj3b697f62017-08-23 11:21:21 +000056 image: {{ .Values.image.policyPe }}
57 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040058 name: brmsgw
59 volumeMounts:
60 - mountPath: /tmp/policy-install/config
61 name: pe
62 volumes:
63 - name: pe
64 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000065 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
Borislav Glozman5197e2e2017-07-24 10:45:28 +030066 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000067 - name: "{{ .Values.nsPrefix }}-docker-registry-key"