Containers time zone sync
[oom.git] / kubernetes / message-router / templates / message-router-zookeeper.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: zookeeper
5   namespace: "{{ .Values.nsPrefix }}-message-router"
6 spec:
7   selector:
8     matchLabels:
9       app: zookeeper
10   template:
11     metadata:
12       labels:
13         app: zookeeper
14       name: zookeeper
15     spec:
16       containers:
17       - image: {{ .Values.image.zookeeper }}
18         imagePullPolicy: {{ .Values.pullPolicy }}
19         name: zookeeper
20         ports:
21         - containerPort: 2181
22         readinessProbe:
23           tcpSocket:
24             port: 2181
25           initialDelaySeconds: 5
26           periodSeconds: 10
27         volumeMounts:
28         - mountPath: /etc/localtime
29           name: localtime
30           readOnly: true
31         - mountPath: /opt/zookeeper-3.4.9/data
32           name: zookeeper-data
33       restartPolicy: Always
34       volumes:
35       - name: localtime
36         hostPath:
37           path: /etc/localtime
38       - name: zookeeper-data
39         persistentVolumeClaim:
40           claimName: message-router-zookeeper
41       imagePullSecrets:
42       - name: "{{ .Values.nsPrefix }}-docker-registry-key"