blob: 17e4896e79b4f5ac5e6f3aad7a208b56d0d8fdbd [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:
58 - mountPath: /tmp/policy-install/config
59 name: pe
60 volumes:
61 - name: pe
62 hostPath:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000063 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
Borislav Glozman5197e2e2017-07-24 10:45:28 +030064 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000065 - name: "{{ .Values.nsPrefix }}-docker-registry-key"