We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 795f113 commit 915f575Copy full SHA for 915f575
1 file changed
pkg/k8s/service/client.go
@@ -92,7 +92,7 @@ func (c *Client) GetNodes(ctx context.Context, namespace, labelSelector string)
92
// filter out services with api port and return clusterIP as Endpoint
93
for _, svc := range svcs.Items {
94
for _, port := range svc.Spec.Ports {
95
- if port.Name == "api" {
+ if port.Name == "api" && svc.Spec.ClusterIP != "None" {
96
nodes = append(nodes, NodeInfo{
97
Name: svc.Name,
98
Endpoint: fmt.Sprintf("http://%s:%v", svc.Spec.ClusterIP, port.Port),
0 commit comments