Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

270
Views
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?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

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
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!