How do Kubernetes Services of type LoadBalancer map to Azure?
IntermediateConceptAKS and ACR
Answer
The Azure cloud provider adds a frontend IP and load-balancing rule to the cluster's Standard LB (kubernetes for public, kubernetes-internal for internal). Health probes target the NodePort (or the pod with externalTrafficPolicy: Local, which preserves client IP).
Useful annotations:
metadata:
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
service.beta.kubernetes.io/azure-load-balancer-internal-subnet: "snet-ilb"
service.beta.kubernetes.io/azure-pip-name: "pip-shop-web"
service.beta.kubernetes.io/azure-load-balancer-health-probe-request-path: "/healthz"
More on AKS and ACR
What does Microsoft manage in AKS and what do you manage?BeginnerWhat is the difference between system and user node pools?BeginnerCompare the AKS networking options: kubenet, Azure CNI, Azure CNI Overlay, Azure CNI Powered by Cilium.AdvancedHow many IPs does an AKS subnet need with flat Azure CNI vs Overlay?AdvancedWhat are the AKS tiers (Free, Standard, Premium)?IntermediateHow do AKS Kubernetes version upgrades work?Intermediate