Containers time zone sync
[oom.git] / kubernetes / message-router / templates / message-router-dmaap.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: dmaap
5   namespace: "{{ .Values.nsPrefix }}-message-router"
6 spec:
7   selector:
8     matchLabels:
9       app: dmaap
10   template:
11     metadata:
12       labels:
13         app: dmaap
14       name: dmaap
15       annotations:
16         pod.beta.kubernetes.io/init-containers: '[
17           {
18               "args": [
19                   "--container-name",
20                   "global-kafka",
21                   "--container-name",
22                   "zookeeper"
23               ],
24               "command": [
25                   "/root/ready.py"
26               ],
27               "env": [
28                   {
29                       "name": "NAMESPACE",
30                       "valueFrom": {
31                           "fieldRef": {
32                               "apiVersion": "v1",
33                               "fieldPath": "metadata.namespace"
34                           }
35                       }
36                   }
37               ],
38               "image": "{{ .Values.image.readiness }}",
39               "imagePullPolicy": "{{ .Values.pullPolicy }}",
40               "name": "dmaap-readiness"
41           }
42           ]'
43     spec:
44       containers:
45       - image: {{ .Values.image.dmaap }}
46         imagePullPolicy: {{ .Values.pullPolicy }}
47         name: dmaap
48         ports:
49         - containerPort: 3904
50         - containerPort: 3905
51         readinessProbe:
52           tcpSocket:
53             port: 3904
54           initialDelaySeconds: 5
55           periodSeconds: 10
56         volumeMounts:
57         - mountPath: /etc/localtime
58           name: localtime
59           readOnly: true
60         - mountPath: /appl/dmaapMR1/bundleconfig/etc/appprops/MsgRtrApi.properties
61           name: appprops
62         - mountPath: /appl/dmaapMR1/etc/cadi.properties
63           name: cadi
64         - mountPath: /appl/dmaapMR1/etc/keyfile
65           name: mykey
66       restartPolicy: Always
67       volumes:
68       - name: localtime
69         hostPath:
70           path: /etc/localtime
71       - name: appprops
72         hostPath:
73           path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dmaap/MsgRtrApi.properties
74       - name: cadi
75         hostPath:
76           path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dmaap/cadi.properties
77       - name: mykey
78         hostPath:
79           path: /dockerdata-nfs/{{ .Values.nsPrefix }}/message-router/dmaap/mykey
80       imagePullSecrets:
81       - name: "{{ .Values.nsPrefix }}-docker-registry-key"