Need to translate ingress-nginx annotations to NGINX-ingress

Please use this template for troubleshooting questions.

My issue: Need to translate annotation from ingress-nginx

How I encountered the problem: Trying to create an ingress in nginx controller migration

Solutions I’ve tried: n/a

Version of NIC and/or NGINX: nginx-ingress

**Deployment environment: aws eks cluster

Hi all,**
I’m trying to translate those annotations from nginx-ingress controller to NGINX-ingress:

nginx.ingress.kubernetes.io/auth-url: ""
nginx.ingress.kubernetes.io/auth-proxy-set-headers: ""
nginx.ingress.kubernetes.io/proxy-body-size: ""
nginx.ingress.kubernetes.io/proxy-connect-timeout: ""
nginx.ingress.kubernetes.io/proxy-read-timeout: ""
nginx.ingress.kubernetes.io/proxy-send-timeout: ""
nginx.ingress.kubernetes.io/permanent-redirect: ""
nginx.ingress.kubernetes.io/auth-signin: ""

can not find any way to translate

Need help from community.

Would be very appreciated

Regards

1 Like

Hi @subash_s

For the proxy-* annotations, the NGINX Ingress Controller has equivalent annotations that you can use:

nginx.ingress.kubernetes.io/proxy-read-timeout
nginx.org/proxy-read-timeout
nginx.ingress.kubernetes.io/proxy-body-size
nginx.org/client-max-body-size
nginx.ingress.kubernetes.io/proxy-read-timeout
nginx.org/proxy-read-timeout
nginx.ingress.kubernetes.io/proxy-send-timeout
nginx.org/proxy-send-timeout

For the auth-* annotations, we are working on enabling external authentication in the NGINX Ingress Controller and expect this to be available in an upcoming release. Please refer to Add support for external authentication · Issue #9155 · nginx/kubernetes-ingress · GitHub for the latest update.

The NGINX Ingress Controller does not have a direct equivalent annotation to nginx.ingress.kubernetes.io/permanent-redirect, but NGINX directives can be used in server-snippets or location-snippets to achieve the same capabilities.

For more details on migrating the ingress-nginx ConfigMaps and Annotations to NGINX Ingress Controller, please refer to Migrate from Ingress-NGINX Controller to NGINX Ingress Controller | NGINX Documentation.

2 Likes

thank you for the help, awaited for the annotation related auth for allowing external authentication :slight_smile: :grinning_face:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.