Giter Site home page Giter Site logo

Comments (6)

ZhangNing10 avatar ZhangNing10 commented on June 19, 2024 1

@duhow , are you using nginx ingress? if so, could you help check by your side whether my pr works? we are not using nginx ingress ^^

from incubator-devlake-helm-chart.

duhow avatar duhow commented on June 19, 2024

Fixed with new values:

  • had to force https instead of using internal grafana %(protocol)
  • remove rewrite-target by disabling the useDefaultNginx value.
grafana:
    grafana.ini:
        server:
            domain: www.fulldomain.com
            root_url: "https://%(domain)s/grafana"
            
ingress:
    useDefaultNginx: false

from incubator-devlake-helm-chart.

s7an-it avatar s7an-it commented on June 19, 2024

@duhow, tried what you suggested I deploy with argocd/helm and use the built-in grafana, getting too many redirects after but forming of url looks ok.

from incubator-devlake-helm-chart.

s7an-it avatar s7an-it commented on June 19, 2024

Had to write custom ingress - disabled the one from chart and based on what you did:
grafana.ini:
server:
domain: devlake.example.customer.com
root_url: "https://%(domain)s/grafana"
useDefaultNginx: false

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: devlake-ingress
  namespace: devlake
  annotations:
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
    nginx.ingress.kubernetes.io/use-forwarded-headers: "true"
spec:
  rules:
    - host: devlake.example.customer.com
      http:
        paths:
          - path: /grafana
            pathType: Prefix
            backend:
              service:
                name: devlake-grafana
                port:
                  number: 80
          - path: /
            pathType: Prefix
            backend:
              service:
                name: devlake-ui
                port:
                  number: 4000

from incubator-devlake-helm-chart.

duhow avatar duhow commented on June 19, 2024

@s7an-it note that the issue with the built-in Ingress is that default ingress.useDefaultNginx adds a rewrite-target, which in turn makes Grafana path go crazy (as it is removed internally, then Grafana never sees it, but client receives the request)

{{- if .Values.ingress.useDefaultNginx }}
nginx.ingress.kubernetes.io/rewrite-target: /$2
{{- end}}

from incubator-devlake-helm-chart.

ZhangNing10 avatar ZhangNing10 commented on June 19, 2024

hi @duhow @s7an-it , thanks for reporting the issue. I have created pr #278 to remove the rewrite-target part, and i tested by my side, no need to adjust values to below part any more:

Fixed with new values:

  • had to force https instead of using internal grafana %(protocol)
  • remove rewrite-target by disabling the useDefaultNginx value.
grafana:
    grafana.ini:
        server:
            domain: www.fulldomain.com
            root_url: "https://%(domain)s/grafana"
            
ingress:
    useDefaultNginx: false

from incubator-devlake-helm-chart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.