Skip to content

Annotations & Controller Metadata

While Labels are used to identify and select objects, Annotations are used to attach non-identifying operational metadata used by controllers, tools, and libraries.


metadata:
annotations:
# AWS Load Balancer Controller annotation
service.beta.kubernetes.io/aws-load-balancer-type: "external"
service.beta.kubernetes.io/aws-load-balancer-nlb-target-type: "instance"
# Ingress rewrite annotation
nginx.ingress.kubernetes.io/rewrite-target: /