skip to Main Content

Help will be much appreciated.

We have forced to upgrade our dockers to ubuntu18.04 from ubuntu16.04 becuase php7.3 is no longer supported using PPA.

After the upgrade we got "400 Bad request" errors from nginx inside the pod. The new nginx version is 1.18 (previous on ubuntu16.04 was 1.16.1).

I’ve tried to access the pod using ssh and run curl, and it works fine. It also works fine if I curl pod from another pod on the cluster. But it responds with 400 if coming from the nginx ingress (AWS LB).

I’ve spent a lot of time googling, trying to figure out what the issue is . If you have encountered that , I’ll be happy to hear some advice.

Thanks!!

2

Answers


  1. Chosen as BEST ANSWER

    Ok. The problem just disappeared. we have deployed again after a few days and everything works. not sure what happened


  2. Try adding the following annotations to the ingress.

    nginx.ingress.kubernetes.io/backend-protocol: HTTPS
    nginx.ingress.kubernetes.io/ssl-redirect: true
    nginx.ingress.kubernetes.io/force-ssl-redirect: true
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search