ZooKeeperCluster Operator is developed by operator-sdk toolkits. Now it supports to scale up/down zookeeper cluster nodes.
$ make docker-build IMG=your-image-name
$ make deploy IMG=your-image-name
apiVersion: kv.polym.xyz/v1
kind: ZooKeeperCluster
metadata:
name: zk-sample
spec:
replicas: 5
$ kubectl apply -f config/samples/kv_v1_zookeepercluster.yaml
$ bash test.sh
$ watch kubectl get pod
$ while true; do ./bin/zkCli.sh config; done
$ kubeadm init --pod-network-cidr=10.244.0.0/16
$ kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml