CKS field card

NGINX annotations

Default prefix: nginx.ingress.kubernetes.io/. Annotation values are strings—quote booleans and numbers.

High-value recall set

IntentAnnotationExample value
Redirect HTTP when TLS existsssl-redirect"true"
Force redirect with external TLS offloadforce-ssl-redirect"true"
Encrypt NGINX-to-backend trafficbackend-protocol"HTTPS"
Allow client CIDRswhitelist-source-range"10.0.0.0/8"
Rewrite matched URIrewrite-target/$2
Limit request bodyproxy-body-size"8m"
Enable regex pathsuse-regex"true"
TLS passthroughssl-passthrough"true"
Security caution: snippet annotations can be critical-risk. TLS passthrough requires controller support and bypasses normal HTTP-layer annotation behavior.

Official annotation reference · Official risk table