LoadBalancer
Sit between the "frontend" apps and the world.
NodePorts accept traffic on ports.
Users need 1 url to access frontend apps.
- The passes requests to cloud providers
- The Address that is created becomes available to the public
- Traffic is spread across pods (balancing the network load)
3rd Party Clouds Support LoadBalancers
Dont Forget about ExternalName Services
K8s docs
These map a service to a dns name.
apiVersion: v1
kind: Service
metadata:
name: external-svc
namespace: production
spec:
type: ExternalName
externalName: my.database.example.com