Running Grafana (in k3s) behind (zuul) reverse proxy with sub path

7/2/2019

I couldn't make Grafana work in k3s behind a reverse proxy (spring cloud zuul). When I try to login to Grafana, the green pop-up "logged in" appears but I'm only immediately redirected back to login page again.

I've tried lots of suggestions from a days googling already, so let me just come back to suggested config by Grafana website page "Running Grafana behind a reverse proxy", thus I have the ff. config in k3s:

        env:
          - name: GF_SERVER_DOMAIN
            value: "localhost"
          - name: GF_SERVER_ROOT_URL
            value: "%(protocol)s://%(domain)s:%(http_port)s/logs/"

In my spring gateway app, I have:

zuul:
  routes:
    logs:
      path: /logs/**
      url: http://grafana:8082/

I'm using Grafana 6.2.4.

Any clue? Thanks in advance.

-- SuwekongHilaw
grafana
k3s
kubernetes
reverse-proxy

0 Answers