zookeeper-operator icon indicating copy to clipboard operation
zookeeper-operator copied to clipboard

How to interact with the zookeeper server in kind environment?

Open marshtompsxd opened this issue 1 year ago • 1 comments

Description

Hi, I am new to the operator and I am trying to deploy it on my laptop using kind. I believe the operator is running fine

~$ kubectl get pod
NAME                                  READY   STATUS    RESTARTS   AGE
zookeeper-0                           1/1     Running   0          27m
zookeeper-operator-6ff885f49d-tvtsq   1/1     Running   0          28m
~$ kubectl get svc -o wide
NAME                     TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)                                        AGE   SELECTOR
kubernetes               ClusterIP   10.96.0.1      <none>        443/TCP                                        29m   <none>
zookeeper-admin-server   ClusterIP   10.96.90.183   <none>        8080/TCP                                       27m   app=zookeeper
zookeeper-client         ClusterIP   10.96.56.14    <none>        2181/TCP                                       27m   app=zookeeper
zookeeper-headless       ClusterIP   None           <none>        2181/TCP,2888/TCP,3888/TCP,7000/TCP,8080/TCP   27m   app=zookeeper

and I am wondering what is the best way to interact with the zookeeper server. Say sending a command ls to the server.

marshtompsxd avatar May 15 '23 16:05 marshtompsxd

You can do a port forward to localhost and then interact with it.

dipeshtripathi avatar Jun 28 '23 09:06 dipeshtripathi