• Empleos
  • Sobre nosotros
  • profesionales
    • Inicio
    • Empleos
    • Cursos y retos
  • empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Nómina
    • Blog
    • Comercial
    • Calculadora de salario

0

206
Vistas
How get custom error pages for kubernetes ingress-nginx with helm charts?

So I am using the nginx ingress and installed it trough the helm chart:

helm install --set controller.kind=DaemonSet --set controller.service.annotations."service\.beta\.kubernetes\.io/do-loadbalancer-size-slug"="lb-large" --set controller.service.annotations."service\.beta\.kubernetes\.io/do-loadbalancer-hostname"="some\.url\.com" ingress-nginx ingress-nginx/ingress-nginx

This automatically created a loadbalancer on digital ocean as well.

As far as I understand until now, referencing this i have to:

  1. Create a docker image which will act as default backend, like this.
  2. Have to set the following things in the helm chart:
    • defaultBackend.enable => true
    • defaultBackend.image => The image created in step 1.
    • controller.config.custom-http-errors => [404, 503, ..] (all the errors i want to be handled by the default backend (config values reference).
  3. Upgrade the helm chart.

Would this be the right and also easiest approach or is there a simpler way?

Also would upgrading the helm chart, remove the old loadbalancer and create a new one?

about 3 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Would this be the right and also easiest approach or is there a simpler way?

The steps presented in the question based on official NGINX Ingress Controller wiki are correct and seems to be easiest approach.

Also would upgrading the helm chart, remove the old loadbalancer and create a new one?

After using command helm upgrade the LoadBalancer will stay the same - the IP address won't change. By running helm list command you can see that upgrade took place, by checking REVISION and UPDATED fields.

NAME            NAMESPACE       REVISION        UPDATED                                 STATUS          CHART                   APP VERSION
ingress-nginx   default         4               2021-09-06 10:38:14.447456942 +0000 UTC deployed        ingress-nginx-3.35.0    0.48.1
about 3 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recomiéndame algunas ofertas
Necesito ayuda