blob: 47cdb51f2f61adc567e23bf5fb8b501fefb113f6 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableMessageRouterZookeeper }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: zookeeper
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-message-router"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
8 selector:
9 matchLabels:
10 app: zookeeper
11 template:
12 metadata:
13 labels:
14 app: zookeeper
15 name: zookeeper
16 spec:
17 containers:
Mandeep Khindadeab10d2017-08-24 23:50:10 +000018 - image: {{ .Values.image.zookeeper }}
19 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040020 name: zookeeper
21 ports:
22 - containerPort: 2181
23 readinessProbe:
24 tcpSocket:
25 port: 2181
26 initialDelaySeconds: 5
27 periodSeconds: 10
28 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030029 - mountPath: /etc/localtime
30 name: localtime
31 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040032 - mountPath: /opt/zookeeper-3.4.9/data
33 name: zookeeper-data
34 restartPolicy: Always
35 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030036 - name: localtime
37 hostPath:
38 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040039 - name: zookeeper-data
BorislavG66a9a5c2017-09-06 15:12:46 +030040 persistentVolumeClaim:
41 claimName: message-router-zookeeper
Borislav Glozman5197e2e2017-07-24 10:45:28 +030042 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000043 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030044#{{ end }}