Install Zookeeper in Oracle Kubernetes Engine aka OKE ;-) in 20 minutes


blue white orange and brown container van
Photo by Pixabay on Pexels.com

If you don’t have one, first create a cluster. In the last version of the dashboard, you can find a new “QUICK CREATE” option that creates all the stuff from scratch easily.

oke2 oke1

Install helm following this link or in mac issue the following command:

brew install helm

Configure access to the cluster

 

Goto this page and follow instructions explained in there (helm chart), in short:

helm repo add bitnami https://charts.bitnami.com/bitnami 

helm install bitnami/zookeeper

Follow instructions for port forwardingInstall zkCli:, such as:

kubectl port-forward --namespace default svc/tufted-sheep-zookeeper 2181:2181

Install a client such as zkCli:

brew tap let-us-go/zkcli
brew install zkcli

Test it:

MacBook-Pro-de-javi:~ javiermugueta$ zkcli 

2018/11/08 00:03:40 Connected to 127.0.0.1:2181

>> create /FirstZnode “Myfirstzookeeper-app”
Created /FirstZnode
>>> get /FirstZnode 1
“Myfirstzookeeper-app”
cZxid = 0x6
ctime = Wed Nov 07 23:12:52 GMT 2018
mZxid = 0x6
mtime = Wed Nov 07 23:12:52 GMT 2018
pZxid = 0x6
cversion = 0
dataVersion = 0
aclVersion = 0
ephemeralOwner = 0x0
dataLength = 26
numChildren = 0
>>> 

That’s it!

Enjoy 😉

 

 

IT

javier mugueta View All →

Me and my circumstance

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: