Skip to main content

Why can I no longer reach my Service on a node IP and NodePort after upgrading to 1.37?

Syself support For release

The NodePort of a type: LoadBalancer Service accepts traffic from outside the cluster only from the Service's own load balancer. A connection to <node-ip>:<nodePort> from anywhere else times out. Before the upgrade to 1.37, anyone could reach the application on a node's public IP and skip the load balancer.

The cloud controller manager adds the load balancer's IPv4 address to the Service's spec.loadBalancerSourceRanges:

				$ kubectl get svc <name> -o jsonpath='{.spec.loadBalancerSourceRanges}'
["203.0.113.10/32"]
			

What still works:

  • The load balancer address, over IPv4 and IPv6.
  • Every path inside the cluster: the ClusterIP, the Service's DNS name, and the NodePort from a pod.
  • A plain type: NodePort Service. It is not limited.

Use the load balancer address 

Point your clients, DNS records and health checks at the address in the EXTERNAL-IP column of kubectl get svc.

Or keep the NodePort open for one Service 

Add this annotation to the Service. You can set it before the upgrade, and the NodePort then stays open the whole time:

yaml
				metadata:
  annotations:
    load-balancer.hetzner.cloud/restrict-node-port-source: "false"
			

The cloud controller manager removes its entry within seconds, and the NodePort answers every source again.

Do not delete the entry from loadBalancerSourceRanges by hand. The cloud controller manager adds it again.

For the rules on your own loadBalancerSourceRanges entries, see Limit the NodePort to the load balancer.

Still stuck?

Prepare your case, then email us.