Fix policy
[oom.git] / kubernetes / policy / templates / dep-brmsgw.yaml
1 #{{ if not .Values.disablePolicyBrmsgw }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   name: brmsgw
6   namespace: "{{ .Values.nsPrefix }}-policy"
7 spec:
8   replicas: 1
9   selector:
10     matchLabels:
11       app: brmsgw
12   template:
13     metadata:
14       labels:
15         app: brmsgw
16       name: brmsgw
17     spec:
18       initContainers:
19       - command:
20         - /root/ready.py
21         args:
22         - --container-name
23         - pap
24         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
33       containers:
34       - command:
35         - /bin/bash
36         - ./do-start.sh
37         - brmsgw
38         image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion}}"
39         imagePullPolicy: {{ .Values.pullPolicy }}
40         name: brmsgw
41         volumeMounts:
42         - mountPath: /etc/localtime
43           name: localtime
44           readOnly: true
45         - mountPath: /tmp/policy-install/config
46           name: pe
47       volumes:
48         - name: localtime
49           hostPath:
50             path: /etc/localtime
51         - name: pe
52           hostPath:
53             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
54       imagePullSecrets:
55       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
56 #{{ end }}