Azure Kubernetes LB annotations

6/24/2021

The kubernetes official documentation for Service objects has some annotations regarding connection-draining, timeout, additional-tags etc. but these are limited to AWS.

I was hoping to find out the same for K8S deployment on Azure cloud.

For example,

 annotations:
    service.beta.kubernetes.io/aws-load-balancer-connection-draining-enabled: "true"
    service.beta.kubernetes.io/aws-load-balancer-connection-draining-timeout: "60"
    service.beta.kubernetes.io/aws-load-balancer-connection-draining-timeout: "300"
    service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "600"
    service.beta.kubernetes.io/aws-load-balancer-healthcheck-healthy-threshold: "2"
    service.beta.kubernetes.io/aws-load-balancer-healthcheck-interval: "6"
    service.beta.kubernetes.io/aws-load-balancer-healthcheck-timeout: "5"
    service.beta.kubernetes.io/aws-load-balancer-healthcheck-unhealthy-threshold: "3"
    service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0

From the official documentation listed here

If not such annotations exist, can someone help me achieve the same on Azure cloud. Thanks in advance!

-- Gauraang Khurana
azure
azure-aks
istio
kubernetes
kubernetes-ingress

1 Answer

6/24/2021

You can find:

  • list of annotations supported for Azure Kubernetes services with type LoadBalancer:

https://kubernetes-sigs.github.io/cloud-provider-azure/topics/loadbalancer/#loadbalancer-annotations

  • list of Azure App Gateway Ingress controller kubernetes annotations:

https://azure.github.io/application-gateway-kubernetes-ingress/annotations/

-- kavyasaraboju-MT
Source: StackOverflow