Open euchungmsft opened 1 year ago
@euchungmsft I am just coming across this now as I've hit the same issue as you.
However, I read here that if you set allocateLoadBalancerNodePorts: false
you must also set External Traffic Policy: Local
When allocateLoadBalancerNodePorts is set to false, ensure the following conditions are met: Set externalTrafficPolicy to Local. And enable the FloatingIP feature by either not setting annotation service.beta.kubernetes.io/azure-disable-load-balancer-floating-ip, or setting its value to false
I have updated my spec and my Azure LB is now updated successfully.
Update, in case you are following along, @euchungmsft
I had hit the same error as you, and I after I used both attributes in my YAML manifest, allocateLoadBalancerNodePorts: false
and externalTrafficPolicy: Local
, I was able to successfully deploy my Azure LB.
I am now doing this all again to verify and I am still seeing that my Azure LB backend pool contains the Node IP addresses, not the Pod IP addresses I am expecting to see. Like you refer to in your first few lines of this issue, I'm trying to have the load balancer send directly to pods, bypassing kube-proxy for improved performance.
Reading further, I see a way to set loadBalancerBackendPoolConfigurationType to either NodeIPConfiguration
, NodeIP
, or PodIP
, however it appears PodIP
is "not supported yet".
As best I can tell then, Azure still does not support load balancing directly to pod IP addresses. Does anybody know if that is correct, and if/when updates are expected? I would love some advice or documentation from AKS PM.
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Hey everyone,
we've deployed an AKS with Cilium networking configured and would like to expose a service type LoadBalancer
with deactivated NodePort allocation, using an internal loadbalancer as described here. Does AKS + LB support this in the meanwhile?
Issue needing attention of @Azure/aks-leads
Issue needing attention of @Azure/aks-leads
Is your feature request related to a problem? Please describe. Avoiding node port allocation for better performance by allocateLoadBalancerNodePorts = false which has been supported from 1.24
Check this out https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.24/#service-v1-core
Describe the solution you'd like allocateLoadBalancerNodePorts field supports in service deployment
Describe alternatives you've considered Tested custom service controller settings but didn't work at all. Seems like there's nothing to do with it
Additional context
Repro
simple-node-service.yml
Command :
prompt> kubectl apply -f simple-node-service.yml
Error :
On AKS portal