Update annotations to spec for vid
[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       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",
28                   "pdp"
29               ],
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               ],
44               "image": "{{ .Values.image.readiness }}:{{ .Values.image.readinessVersion }}",
45               "imagePullPolicy": "{{ .Values.pullPolicy }}",
46               "name": "brmsgw-readiness"
47           }
48           ]'
49     spec:
50       containers:
51       - command:
52         - /bin/bash
53         - ./do-start.sh
54         - brmsgw
55         image: "{{ .Values.image.policyPe }}:{{ .Values.image.policyPeVersion}}"
56         imagePullPolicy: {{ .Values.pullPolicy }}
57         name: brmsgw
58         volumeMounts:
59         - mountPath: /etc/localtime
60           name: localtime
61           readOnly: true
62         - mountPath: /tmp/policy-install/config
63           name: pe
64       volumes:
65         - name: localtime
66           hostPath:
67             path: /etc/localtime
68         - name: pe
69           hostPath:
70             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/policy/opt/policy/config/pe/
71       imagePullSecrets:
72       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
73 #{{ end }}