0

I've deployed Keycloak + gatekeeper + kubernetes-dashboard. If i have url like dashboard.home.local - it works properly.

But now I have to publich kubernetes-dashboard like home.local/dashboard

The kubernetes-dashboard documentation says in that case (home.local/dashboard) I should to configure ingress with rewrite like:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: kubernetes-dashboard
  namespace: kubernetes-dashboard
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
  ingressClassName: "nginx"
  rules:
  - host: home.local
    http:
      paths:
      - backend:
          service:
            name: kubernetes-dashboard
            port:
              number: 8443
        path: /dashboard(/|$)(.*)
        pathType: Prefix
  tls:
    - hosts:
      - home.local
      secretName: dashboard-tls

For gatekeeper configuration I set

- --oauth-uri=/oauth
- --base-uri=/dashboard

but it doesn't work properly. I got ERR_TOO_MANY_REDIRECTS error.

I've read already this an this.

Maybe someone has already to solve same problem?

MIRISU2
  • 1
  • 1
  • 2

0 Answers0