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

Thanos "To many redirects" using --web.external-prefix #7697

Closed
rodrigoscferraz opened this issue Oct 4, 2021 · 6 comments
Closed

Thanos "To many redirects" using --web.external-prefix #7697

rodrigoscferraz opened this issue Oct 4, 2021 · 6 comments
Labels
stale 15 days without activity

Comments

@rodrigoscferraz
Copy link

Which chart:
Thanos 6.0.0

Describe the bug
Maybe this is not a bug, i think i missconfigure something ... I'm trying to expose bucketweb throught ISTIO but i'm receiving "TO MANY REDIORECTS" when i try to access.
An interesting point is that if i put /metrics at the end it works, but if try to access the root path i receive the redirect message.

To Reproduce
Steps to reproduce the behavior:
I have this config for my bucketweb

    bucketweb:
      service:
        http:
          port: 8080
      enabled: true
      extraFlags:
        - --web.external-prefix=tools/thanos-bucketweb

And for my virtual service i have this:

apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: thanos-bucketweb-monitoring-vsvc
  namespace: monitoring
spec:
  hosts:
  - internal.test.io
  gateways:
  - istio-system/private-gateway
  http:
  - match:
    - uri:
        exact: /tools/thanos-bucketweb
    - uri:
        prefix: /tools/thanos-bucketweb/
    rewrite:
      uri: /
    route:
    - destination:
        host: thanos-bucketweb
        port:
          number: 8080

Expected behavior
A clear and concise description of what you expected to happen.

Version of Helm and Kubernetes:

  • Output of helm version:
version.BuildInfo{Version:"v3.6.3", GitCommit:"d506314abfb5d21419df8c7e7e68012379db2354", GitTreeState:"clean", GoVersion:"go1.16.5"}

  • Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.2", GitCommit:"8b5a19147530eaac9476b0ab82980b4088bbc1b2", GitTreeState:"clean", BuildDate:"2021-09-15T21:38:50Z", GoVersion:"go1.16.8", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.2+k3s1", GitCommit:"5a67e8dc473f8945e8e181f6f0b0dbbc387f6fca", GitTreeState:"clean", BuildDate:"2021-06-21T20:52:44Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"linux/amd64"}

@rodrigoscferraz
Copy link
Author

rodrigoscferraz commented Oct 4, 2021

I noticed that the /static content are not coming from /tools/thanos-bucketweb/static but from /tools/static...i just don't know why...

@alvneiayu
Copy link
Contributor

hi @rodrigoscferraz

I am not expert in Thanos but I will try to do my best. Officially, we are not testing our charts with Istio, so we don't know if we have compatibility or not at this moment. Moreover, I found a Thanos case reporting an error with the flag external-prefix (case). I don't know if this is affecting you.

I will try to investigate a little bit to try to help you.

Thanks a lot

Álvaro

@rodrigoscferraz
Copy link
Author

Hello @alvneiayu ! Thx for your help!
Seem like that is the same sittuation, i wiil follow this thread, maybe i found something.
Thx a lot!

@alvneiayu
Copy link
Contributor

hi @rodrigoscferraz

You're welcome. Let me know if I can help you with something else.

Thanks

Álvaro

@github-actions
Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Oct 21, 2021
@github-actions
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

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

No branches or pull requests

2 participants