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

Configurable Context Root #7

Open
sbueringer opened this issue Jul 2, 2018 · 1 comment
Open

Configurable Context Root #7

sbueringer opened this issue Jul 2, 2018 · 1 comment

Comments

@sbueringer
Copy link

Hi,

I'm deploying Istio together with various addons incl. Vistio. Because I didn't want to host all those addons on different hostnames on context root, I tried to deploy Vistio behind an Ingress controller (in this case Traefik) under /vistio. The index.html itself is loading but vizceral.a7cef684b9cd92e564b0.bundle.js can not be found because of the /vistio prefix

Is there any way to configure this?

@nmnellis
Copy link
Owner

nmnellis commented Jul 4, 2018

I will look to see if this can be done within the vistio web app, in the mean time you should be able to rewrite the url, here is an example on how to do it with nginx. Note nginx.ingress.kubernetes.io/rewrite-target: /

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/rewrite-target: /
  labels:
    app: vistio-web
  name: vistio-web
spec:
  rules:
  - host: my-subdomain.example.com
    http:
      paths:
      - backend:
          serviceName: vistio-web
          servicePort: http
        path: /vistio

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