diff options
author | solsson <solsson@gmail.com> | 2017-01-02 11:57:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-02 11:57:57 +0100 |
commit | 467ac9d15f41ca7e3849f14e45b3a7c9fa26bab4 (patch) | |
tree | 9d70e06950db19819e368a786bd74d5decaeb84a /zookeeper/50zoo.yml | |
parent | 932307616aa4ccd59df42209d92e83aef244f3d0 (diff) | |
parent | e631d5856532aecd2dfc0a7662d6d7310a482c40 (diff) | |
download | kubernetes-kafka-467ac9d15f41ca7e3849f14e45b3a7c9fa26bab4.tar.gz kubernetes-kafka-467ac9d15f41ca7e3849f14e45b3a7c9fa26bab4.tar.bz2 kubernetes-kafka-467ac9d15f41ca7e3849f14e45b3a7c9fa26bab4.zip |
Merge pull request #14 from Yolean/statefulset
Convert PetSet to StatefulSet for k8s 1.5+
Diffstat (limited to 'zookeeper/50zoo.yml')
-rw-r--r-- | zookeeper/50zoo.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/zookeeper/50zoo.yml b/zookeeper/50zoo.yml new file mode 100644 index 0000000..5cb7c02 --- /dev/null +++ b/zookeeper/50zoo.yml @@ -0,0 +1,38 @@ +apiVersion: apps/v1beta1 +kind: StatefulSet +metadata: + name: zoo + namespace: kafka +spec: + serviceName: "zoo" + replicas: 5 + template: + metadata: + labels: + app: zookeeper + spec: + terminationGracePeriodSeconds: 10 + containers: + - name: zookeeper + image: solsson/zookeeper-statefulset:3.4.9@sha256:d32b44b32009a69b3450a5216f459e504f1041f587596895219fc04cf22f5546 + env: + - name: ZOO_SERVERS + value: server.1=zoo-0.zoo:2888:3888:participant server.2=zoo-1.zoo:2888:3888:participant server.3=zoo-2.zoo:2888:3888:participant server.4=zoo-3.zoo:2888:3888:participant server.5=zoo-4.zoo:2888:3888:participant + ports: + - containerPort: 2181 + name: client + - containerPort: 2888 + name: peer + - containerPort: 3888 + name: leader-election + volumeMounts: + - name: datadir + mountPath: /data + # There's defaults in this folder, such as logging config + #- name: conf + # mountPath: /conf + volumes: + #- name: conf + # emptyDir: {} + - name: datadir + emptyDir: {} |