Idle Timeout of Load Balancing Rules belonging to Standard SKU Load balancer linked to Kubernetes Cluster getting reset to default 4 minutes even after getting updated.

Anand Mohan Singh 45 Reputation points
2023-08-22T19:20:44.7566667+00:00

I have a Standard SKU Load balancer managed by an AKS Cluster. At the time of cluster and consecutive LB creation, the Idle Timeout was set to default 4.

First I tried updating the Idle Timeout of Load balancing rules to 30 minutes via UI. Even thought it was a success, after reconciliation it got changed back to 4 minutes.

Then via Azure CLI and below mentioned command I updated the Idle Time Out

az aks update \
    --resource-group myResourceGroup \
    --name myAKSCluster \
    --load-balancer-idle-timeout 30

Then also during reconciliation it was set back to 4.

I also tried the below mentioned commands on both the Load Balancing Rule

az network lb rule update --resource-group myResourceGroup --name 
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,960 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
420 questions
0 comments No comments
{count} votes

Accepted answer
  1. mutaz-msft 2,341 Reputation points Microsoft Employee
    2023-08-23T13:15:28.4+00:00

    Hi @Anand Mohan Singh,

    There are two timeout settings on the AKS standard load balancer; Load balancing rules for inbound connections and Outbound rules for outbound connections.

    1. The one that is updated using "az aks update" command is the outbound rules.
      You can update this value using "az aks update" command and it will persist:
    az aks update \
        --resource-group myResourceGroup \
        --name myAKSCluster \
        --load-balancer-idle-timeout 30
    

    Also, you can verify the value using these commands:

    az network lb outbound-rule list -g <mc_resource-group> --lb-name kubernetes -o table
    
    az network lb outbound-rule show -g <mc_resource-group> --lb-name kubernetes -n aksOutboundRule
    
    1. Load balancing rules is for kubernetes services, default value is 4 and will reconciled back to default value if you changed it when you did any PUT operation on the cluster.

    You can verify the value using these commands:

    az network lb rule list -g <mc_resource-group> --lb-name kubernetes -o table
    
    az network lb rule show -g <mc_resource-group> --lb-name kubernetes -n <Rule-name>
    

    Hope this helps, and please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful