Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 939 Bytes

README.md

File metadata and controls

46 lines (32 loc) · 939 Bytes

Go Report Card

Overview

ZooKeeperCluster Operator is developed by operator-sdk toolkits. Now it supports to scale up/down zookeeper cluster nodes.

Build

$ make docker-build IMG=your-image-name

Deploy

$ make deploy IMG=your-image-name

YAML

apiVersion: kv.polym.xyz/v1
kind: ZooKeeperCluster
metadata:
  name: zk-sample
spec:
  replicas: 5

Test

$ kubectl apply -f config/samples/kv_v1_zookeepercluster.yaml
$ bash test.sh
$ watch kubectl get pod
$ while true; do ./bin/zkCli.sh config; done

Addition: Kubernetes dev environment init

$ kubeadm init --pod-network-cidr=10.244.0.0/16
$ kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml