一、kafka和zookeeper集群测试
### --- 查看kafka和zookeeper集群状态
[root@k8s-master01 zookeeper-kafka]# kubectl get po -n public-service -owide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
kafka-0 1/1 Running 0 28m 172.17.125.23 k8s-node01 <none> <none>
zookeeper-0 1/1 Running 0 95m 172.27.14.246 k8s-node02 <none> <none>
[root@k8s-master01 zookeeper-kafka]# kubectl get svc -n public-service -owide
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
kafka ClusterIP 10.111.68.94 <none> 9092/TCP 46m app.kubernetes.io/component