yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableMessageRouterZookeeper }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: zookeeper |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}-message-router" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
vaibhav_16dec | a6719fe | 2018-02-14 09:48:43 +0000 | [diff] [blame] | 8 | replicas: {{ .Values.zookeeperReplicas }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 9 | selector: |
| 10 | matchLabels: |
| 11 | app: zookeeper |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: zookeeper |
| 16 | name: zookeeper |
| 17 | spec: |
| 18 | containers: |
Mandeep Khinda | deab10d | 2017-08-24 23:50:10 +0000 | [diff] [blame] | 19 | - image: {{ .Values.image.zookeeper }} |
| 20 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 21 | name: zookeeper |
| 22 | ports: |
| 23 | - containerPort: 2181 |
| 24 | readinessProbe: |
| 25 | tcpSocket: |
| 26 | port: 2181 |
| 27 | initialDelaySeconds: 5 |
| 28 | periodSeconds: 10 |
| 29 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 30 | - mountPath: /etc/localtime |
| 31 | name: localtime |
| 32 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 33 | - mountPath: /opt/zookeeper-3.4.9/data |
| 34 | name: zookeeper-data |
| 35 | restartPolicy: Always |
| 36 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 37 | - name: localtime |
| 38 | hostPath: |
| 39 | path: /etc/localtime |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 40 | - name: zookeeper-data |
BorislavG | 66a9a5c | 2017-09-06 15:12:46 +0300 | [diff] [blame] | 41 | persistentVolumeClaim: |
| 42 | claimName: message-router-zookeeper |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 43 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 44 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
vaibhav_16dec | a6719fe | 2018-02-14 09:48:43 +0000 | [diff] [blame] | 45 | #{{ end }} |