Cloud Platform
LoadBalancer services
Last updated 2026-11-05
Code
LoadBalancer services
A Kubernetes Service of type LoadBalancer gets a public IPv4 address from your project.
YAMLcontent_copy
apiVersion: v1
kind: Service
metadata:
name: web
spec:
type: LoadBalancer
selector:
app: web
ports:
- port: 80
targetPort: 8080kubectl get service web # EXTERNAL-IP lists the public address (and the node's private one)How it works
- Every 15 seconds the platform looks for Services of type
LoadBalancer. - Each gets a public IP of the cluster's project, translated 1:1 to the private address of a ready worker node.
- When that worker is removed or stops being ready, the translation moves to another one.
- When the Service or the cluster is deleted, the address is given back.
The address counts against your public_ipv4 quota and is billed like any public IP.
Limits
- One node carries a Service's traffic. There is no spreading over nodes yet.
- Allow the traffic in the firewall of the cluster's VPC. Incoming connections are dropped until a rule allows them.