Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ingress-nginx get 400 #125

Closed
snup67 opened this issue Jan 13, 2023 · 2 comments
Closed

ingress-nginx get 400 #125

snup67 opened this issue Jan 13, 2023 · 2 comments

Comments

@snup67
Copy link

snup67 commented Jan 13, 2023

in kubernetes using ingress-nginx that installed by helmchart
changing only those parameters
image
image

The ingress located in the namespace of all application
image
ingress describe:
image

All OK when getting to port 80 - I'm getting the nginx main console
The problem :
all application get 404 for example, looking for network traffic on application test
image

in application deployment I configured and didn't helped
image

I check inside container
image
id command gives : uid=1000(jenkins) gid=1000(jenkins) groups=1000(jenkins)

I check the rewrite and is working
image

The only issiue I'm thinking about is that using metallb I configured IPAddresspull that not include the IP Adresses of all machine in the clusters, but I don't know if I'm in correct path to solve that
image

Any help will be useful

@snup67
Copy link
Author

snup67 commented Jan 19, 2023

some progress - manage to get over the 404 problem

solve it by adding annotation nginx.ingress.kubernetes.io/rewrite-target: /
but still there is a problem with the rewrite for Jenkins - since Jenkins define the switch between location the rewrite not working well

example:
got the GUI of Jenkins but if click on management I get to nginx console since the rewrite is to main application . I notes that Jenkins management icon redirect to //management, in my case jenkins-ci/management

I think I can't use ingress-nginx controller because he can't handle rewrite well with Jenkins application

jenkins ingress
image
ingress describe
image

@justmeandopensource
Copy link
Owner

@snup67 thanks for reporting this issue. This was reported a year ago. I am closing this issue as it might not be relevant today. If you still experience this issue please try with the latest version of all the softwares and tools and report it here. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants