---
# System prepended metadata

title: Untitled

---

Documentation concering increasing timeout on LoadBalancer in AKS. \
-

so whenever we create a LoadBalancer for our Cluster in AKS, We use a deployment yaml
something like this : 
```
apiVersion: v1
kind: Service
metadata:
  name: public-svc
spec:
  type: LoadBalancer
  ports:
  - port: 80
  selector:
    app: public-app
```
We just add an annotation to that, namely, `service.beta.kubernetes.io/azure-load-balancer-tcp-idle-timeout` and it works allright. 
Because this thing doesn't work!
https://i.stack.imgur.com/R0R2C.png

it should look like this : 

```yaml 
apiVersion: v1
kind: Service
metadata:
  name: public-svc
  annotations: service.beta.kubernetes.io/azure-load-balancer-tcp-idle-timeout : '400'
  //specify this in minutes
  
spec:
  type: LoadBalancer
  ports:
  - port: 80
  selector:
    app: public-app
```