Ingress controller nginx exclude IP from basic_auth

1/12/2019

I have ingress controller nginx with basic_auth

In my yaml I have:

  annotations:
    nginx.ingress.kubernetes.io/auth-type: basic
    nginx.ingress.kubernetes.io/auth-secret: basic-auth
    nginx.ingress.kubernetes.io/auth-realm: "Authentication Required"

Everything works fine, but I need to exclude some IP addresses from basic_auth, and I can`t find a solution for it.

Does ingress have such opportunities?

-- ksmar
basic-authentication
kubernetes
nginx-ingress

0 Answers