Azure Kubernetes Services
Statefulsets
- Refer Here for official docs
Lets create a sample stateful set
- Refer Here for the sample statefulset.
- Headless Service

Access and identity in AKS Cluster
- Refer Here for official docs
- Solution to the problem faced last week Refer Here
Annotations
Here is a list of Azure-specific annotations and related configurations that can be used in an AKS cluster:
- Azure Load Balancer Annotations:
service.beta.kubernetes.io/azure-dns-label-name: Specifies the DNS label name for the load balancer.service.beta.kubernetes.io/azure-load-balancer-internal: Enables internal load balancing.-
service.beta.kubernetes.io/azure-load-balancer-internal-subnet: Specifies the subnet for internal load balancing. - Azure Ingress Controller Annotations:
kubernetes.io/ingress.class: Specifies the ingress class, e.g.,azure/application-gateway.appgw.ingress.kubernetes.io/backend-path-prefix: Specifies the path prefix for the backend service.-
appgw.ingress.kubernetes.io/ssl-redirect: Enables or disables SSL redirection. - Azure Storage Annotations:
-
volume.beta.kubernetes.io/storage-class: Specifies the storage class for persistent volumes. - Azure Network Policy Annotations:
networking.k8s.io/egress: Specifies egress network policies.-
networking.k8s.io/ingress: Specifies ingress network policies. - Azure Service Account Annotations for Workload Identity:
azure.workload.identity/client-id: Specifies the client ID for Azure AD workload identity.-
azure.workload.identity/tenant-id: Specifies the tenant ID for Azure AD workload identity. - General Azure Annotations:
azure-disk.enableUltra: Enables ultra disks for Azure managed disks.azure-disk.cachingMode: Specifies the caching mode for Azure managed disks.
These annotations help in configuring and managing Azure resources within an AKS cluster, such as load balancers, ingress controllers, storage, and network policies. For more detailed information, refer to the official Kubernetes and Azure documentation.
Citations:
[1] https://learn.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest
[2] https://learn.microsoft.com/en-us/azure/aks/use-tags
[3] https://learn.microsoft.com/en-us/azure/aks/monitor-aks
[4] https://learn.microsoft.com/en-us/azure/aks/load-balancer-standard
[5] https://gist.github.com/yokawasa/fd9d9b28f7c79461f60d86c23f615677
[6] https://learn.microsoft.com/en-us/azure/aks/core-aks-concepts
[7] https://azure.github.io/azure-workload-identity/docs/topics/service-account-labels-and-annotations.html
[8] https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
