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

Need to run this with istio virtual service #13

Open
mayankkh1 opened this issue Jun 19, 2024 · 0 comments
Open

Need to run this with istio virtual service #13

mayankkh1 opened this issue Jun 19, 2024 · 0 comments

Comments

@mayankkh1
Copy link

I have issue with this like when we run the code with istio virtual service. Below is the YAML content for virtual service. We are running with your code then it works fine with IP:

  • match:
    - uri:
    prefix: /

    route:
    - destination:
    host: service.default.svc.cluster.local
    port:
    number: 3000

If I want to run the URL localhost/test/data or IP/test/data something

  • match:
    - uri:
    prefix: /test/data
    rewrite:
    uri: /
    route:
    - destination:
    host: service.default.svc.cluster.local
    port:
    number: 3000

It's not working fine. Website just load or not working properly. Can we able to fixed this because I want to run the website like exampl.com/test/data and it needs to be redirect to authentication page. But in current Scenario its not working fine it's not redirected

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

1 participant