-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Path based routing not working after upgrading nginx-ingress-controller from 0.19.0 to 0.22.0 #3762
Comments
0.19.0
to 0.22.0
@dkirrane please check https://github.com/kubernetes/ingress-nginx/releases/tag/nginx-0.22.0 (Breaking changes section about rewrites) |
0.19.0
to 0.22.0
@aledbf thanks working now. For Kubernetes Dashboard From:
To :
|
You should to add
After deploying it. you can able to reach techhearts.com/ashok/index.html |
Do refer comment |
I spend literally a day with this problem. The problem was simply the wrong nginx installed. I used helm found here to install nginx-ingress Install it, please use helm version 3:
Once run, in the logs you shall see a snippet that illustrates how your ingress should look like. In case you want to do the above, you can the annotation suggested above and henceforth, you can follow tutorials here to achieve more such as rewrite. My cluster is deployed on GCP using GKE when done, this is the output log:
This is how my ingress looks like now after installing it:
When i hit [your ip address].xip.io/eureka , it will rewrite and redirect to the service with route as / which returns the eureka registry When i hit [your ip address].xip.io/api/test/hello , it will rewrite and redirect to the service with route as /test/hello this returns the data as configured in microservices using spring api gateway. As you can see I am deploying spring micro-services using kubernetes(gke). |
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
NGINX Ingress controller version:
quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.22.0
helm install stable/nginx-ingress --version 1.3.0
Kubernetes version (use
kubectl version
):Environment:
Cloud provider or hardware configuration:
CentOS bare metal - kubeadm v1.13.2 created cluster
OS (e.g. from /etc/os-release):
Kernel (e.g.
uname -a
):Linux prod-master1 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Install tools:
What happened:
Path based routing no longer works after upgrading from nginx-ingress-controller from
0.19.0
to0.22.0
What you expected to happen:
Backwards compatibility
How to reproduce it (as minimally and precisely as possible):
Deployed Kubernetes Helm chart with Ingress path
/dashboard
The text was updated successfully, but these errors were encountered: