Closed geakstr closed 1 year ago
We also want to host hubble-ui under a path prefix (e.g. /hubble
).
We also need to expose hubble under our-domain.com/hubble
.
Any progres on this, or some other workarounds?
I tried with the below but not working
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hubble-ui
namespace: cilium
annotations:
kubernetes.io/ingress.class: nginx
# bug https://github.com/cilium/hubble-ui/issues/154
nginx.ingress.kubernetes.io/rewrite-target: /$2
# nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/configuration-snippet: |
rewrite (^\/icons.*$)|(^\/bundle.*$) /hubble$uri permanent;
# nginx.ingress.kubernetes.io/configuration-snippet: |
# rewrite ^(?:(?!\/hubble).)*$ /hubble$uri permanent;
spec:
rules:
- host: xx-xx-cluster.ml
http:
paths:
- path: /hubble(/|$)(.*)
# - path: /
#- path: /hubble
pathType: Prefix
backend:
service:
name: hubble-ui
port:
number: 8081
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/backend-protocol: GRPC
nginx.ingress.kubernetes.io/configuration-snippet: |
grpc_next_upstream error timeout http_502 http_503 http_504 non_idempotent;
grpc_next_upstream_tries 3;
rewrite (^\/api.*$) /hubble/api$uri permanent;
name: hubble-grpc
namespace: cilium
spec:
rules:
- host: xx-xx-cluster.ml
http:
paths:
- backend:
service:
name: hubble-ui
port:
number: 8081
path: /api(/|$)(.*)
pathType: Prefix
/assgin
Is this stale?
Origin: https://github.com/cilium/cilium/issues/13182