Skip to content

polym/zk-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ZooKeeper Cluster Operator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published