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

[Query] UI served behind reverse proxy on a subpath broken on 0.15.0 #3226

Closed
amrmahdi opened this issue Sep 25, 2020 · 0 comments · Fixed by #3234
Closed

[Query] UI served behind reverse proxy on a subpath broken on 0.15.0 #3226

amrmahdi opened this issue Sep 25, 2020 · 0 comments · Fixed by #3234

Comments

@amrmahdi
Copy link
Contributor

Thanos version: v.15.0

I updated from 0.14.0 to 0.15.0 and thanos query UI in not working correctly. I run thanos behind an nginx reverse proxy under a subpath. The way I've been running it so far is using the --web.prefix-header=X-Forwarded-Prefix

Here is my ingress:

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /$1
    nginx.ingress.kubernetes.io/x-forwarded-prefix: /thanos
  name: thanos-query-http
spec:
  rules:
  - host: foo.bar
    http:
      paths:
      - backend:
          serviceName: thanos-query-http
          servicePort: 10902
        path: /thanos/?(.*)

Here is what I get on v0.15.0:

image

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

Successfully merging a pull request may close this issue.

2 participants