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