是否可以使用一项服务突出显示所有 pods?
Is that possible to highlight all the pods using ONE service?
如果我想查看所有 pods 使用我的服务 toto,我该怎么做?
要检查所有 pods 连接到您的服务,您应该这样做:
kubectl get service <svc_name>
[root@ip-10-0-1-162 centos]# kubectl describe service <svc_name>
Name: <svc_name>
Namespace: default
Labels: <none>
Annotations: <none>
Selector: app=config
Type: ClusterIP
IP: None
Port: http 9042/TCP
TargetPort: 9042/TCP
Endpoints: 192.168.13.117:9042,192.168.13.248:9042,192.168.13.34:9042
Session Affinity: None
Events: <none>
端点是该服务所服务的 POD IP
如果我想查看所有 pods 使用我的服务 toto,我该怎么做?
要检查所有 pods 连接到您的服务,您应该这样做:
kubectl get service <svc_name>
[root@ip-10-0-1-162 centos]# kubectl describe service <svc_name>
Name: <svc_name>
Namespace: default
Labels: <none>
Annotations: <none>
Selector: app=config
Type: ClusterIP
IP: None
Port: http 9042/TCP
TargetPort: 9042/TCP
Endpoints: 192.168.13.117:9042,192.168.13.248:9042,192.168.13.34:9042
Session Affinity: None
Events: <none>
端点是该服务所服务的 POD IP