Skip to main content
logoTetrate AI Agent AcceleratorsVersion: Latest

Supported NGINX Annotations

The following NGINX annotations are automatically translated to their TEG equivalents:

Traffic Management

NGINX AnnotationDescriptionTEG Resource Generated
nginx.ingress.kubernetes.io/ssl-redirectRedirect HTTP to HTTPSHTTPRoute with redirect filter
nginx.ingress.kubernetes.io/force-ssl-redirectForce HTTPS redirectHTTPRoute with redirect filter
nginx.ingress.kubernetes.io/rewrite-targetURL path rewritingHTTPRoute with URLRewrite filter
nginx.ingress.kubernetes.io/use-regexEnable regex path matchingHTTPRoute with RegularExpression path type
nginx.ingress.kubernetes.io/app-rootRedirect root pathHTTPRoute with redirect filter

Rate Limiting

NGINX AnnotationDescriptionTEG Resource Generated
nginx.ingress.kubernetes.io/limit-rpsRequests per secondSecurityPolicy with rateLimit
nginx.ingress.kubernetes.io/limit-rpmRequests per minuteSecurityPolicy with rateLimit
nginx.ingress.kubernetes.io/limit-connectionsConnection limitClientTrafficPolicy

CORS

NGINX AnnotationDescriptionTEG Resource Generated
nginx.ingress.kubernetes.io/enable-corsEnable CORSSecurityPolicy with cors
nginx.ingress.kubernetes.io/cors-allow-originAllowed originsSecurityPolicy cors.allowOrigin
nginx.ingress.kubernetes.io/cors-allow-methodsAllowed methodsSecurityPolicy cors.allowMethods
nginx.ingress.kubernetes.io/cors-allow-headersAllowed headersSecurityPolicy cors.allowHeaders
nginx.ingress.kubernetes.io/cors-expose-headersExposed headersSecurityPolicy cors.exposeHeaders
nginx.ingress.kubernetes.io/cors-allow-credentialsAllow credentialsSecurityPolicy cors.allowCredentials
nginx.ingress.kubernetes.io/cors-max-agePreflight cache durationSecurityPolicy cors.maxAge

Authentication

NGINX AnnotationDescriptionTEG Resource Generated
nginx.ingress.kubernetes.io/auth-urlExternal auth URLSecurityPolicy with extAuth
nginx.ingress.kubernetes.io/auth-response-headersHeaders from auth serviceSecurityPolicy extAuth.headersToBackend
nginx.ingress.kubernetes.io/auth-typeAuth type (basic)SecurityPolicy with basicAuth
nginx.ingress.kubernetes.io/auth-secretBasic auth secretSecurityPolicy basicAuth.users
nginx.ingress.kubernetes.io/auth-tls-secretClient mTLS CAClientTrafficPolicy with clientValidation

Backend Configuration

NGINX AnnotationDescriptionTEG Resource Generated
nginx.ingress.kubernetes.io/backend-protocolBackend protocol (HTTP/HTTPS/GRPC)BackendTrafficPolicy or GRPCRoute
nginx.ingress.kubernetes.io/proxy-ssl-secretBackend TLS CABackendTrafficPolicy with TLS
nginx.ingress.kubernetes.io/proxy-ssl-verifyVerify backend certBackendTrafficPolicy tls.insecureSkipVerify
nginx.ingress.kubernetes.io/proxy-body-sizeMax request body sizeBackendTrafficPolicy requestBuffer

Timeouts & Retries

NGINX AnnotationDescriptionTEG Resource Generated
nginx.ingress.kubernetes.io/proxy-connect-timeoutTCP connection timeoutBackendTrafficPolicy timeout.tcp
nginx.ingress.kubernetes.io/proxy-read-timeoutRead timeoutBackendTrafficPolicy timeout.http
nginx.ingress.kubernetes.io/proxy-send-timeoutSend timeoutBackendTrafficPolicy timeout.http
nginx.ingress.kubernetes.io/proxy-next-upstreamRetry conditionsBackendTrafficPolicy retry
nginx.ingress.kubernetes.io/proxy-next-upstream-triesRetry attemptsBackendTrafficPolicy retry.numRetries
nginx.ingress.kubernetes.io/proxy-next-upstream-timeoutPer-retry timeoutBackendTrafficPolicy retry.perRetryTimeout

Session Affinity

NGINX AnnotationDescriptionTEG Resource Generated
nginx.ingress.kubernetes.io/affinitySession affinity typeBackendTrafficPolicy loadBalancer
nginx.ingress.kubernetes.io/session-cookie-nameCookie nameBackendTrafficPolicy consistentHash.cookie
nginx.ingress.kubernetes.io/session-cookie-expiresCookie TTLBackendTrafficPolicy consistentHash.cookie.ttl
nginx.ingress.kubernetes.io/session-cookie-max-ageCookie max ageBackendTrafficPolicy consistentHash.cookie.ttl
nginx.ingress.kubernetes.io/session-cookie-samesiteCookie SameSiteBackendTrafficPolicy consistentHash.cookie.attributes

Canary Deployments

NGINX AnnotationDescriptionTEG Resource Generated
nginx.ingress.kubernetes.io/canaryEnable canaryHTTPRoute with weighted backends
nginx.ingress.kubernetes.io/canary-weightTraffic percentageHTTPRoute backendRef.weight
nginx.ingress.kubernetes.io/canary-weight-totalWeight total (default: 100)HTTPRoute weight calculation
nginx.ingress.kubernetes.io/canary-by-headerHeader-based routingHTTPRoute with header match
nginx.ingress.kubernetes.io/canary-by-header-valueHeader value to matchHTTPRoute header match value
nginx.ingress.kubernetes.io/canary-by-cookieCookie-based routingHTTPRoute with cookie match

TLS

NGINX AnnotationDescriptionTEG Resource Generated
nginx.ingress.kubernetes.io/ssl-passthroughTLS passthroughTLSRoute instead of HTTPRoute

Un-Supported NGINX Annotations

Will Not Implement (Security Risk)

These annotations will never be implemented due to security concerns:

NGINX AnnotationReason
configuration-snippetArbitrary nginx config injection
server-snippetArbitrary server block injection
stream-snippetArbitrary stream config injection
modsecurity-snippetArbitrary WAF rules

Not Supported

NGINX AnnotationReason
auth-methodExtAuth doesn't support specifying HTTP method
auth-signinUse OIDC authentication for redirects
canary-by-header-patternRegex header match not supported in Envoy Gateway
session-cookie-pathNo Envoy Gateway equivalent
session-cookie-change-on-failureRe-route on backend failure not supported
limit-burst-multiplierEnvoy uses token bucket, not burst multiplier