在gke中部署了舵图后如何连接Zookeeper?

nuypyhwy  于 2022-12-16  发布在  Apache
关注(0)|答案(1)|浏览(154)

我们正在创建一个vmware carvel软件包,我需要做一个zookeeper的健全性检查,我如何检查gke中的输出?
Zookeeper输出

Curl和localhost无法连接。

i86rm4rw

i86rm4rw1#

The problem is that your service type is ClusterIP which is not available from outside the Kubernetes cluster. There are two ways you could do this
If you need to really access this regularly from outside the cluster, you should deploy a service of type NodePort or LoadBalancer or an ingress. These would be reachable from outside
If you only want to check something quickly, you can temporarily make zookeeper visible with

kubectl port-forward zookeeper-0 2181

相关问题