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.
1. Common Annotation Examples
Section titled “1. Common Annotation Examples”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: /