homek8s/infrastructure/networking/cilium/hubble-ui-httproute.yaml

27 lines
876 B
YAML
Raw Normal View History

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: hubble-ui
namespace: kube-system
labels:
app.kubernetes.io/name: hubble-ui
app.kubernetes.io/part-of: cilium
spec:
parentRefs:
# Dedicated listener on port 8082 — deliberately NOT the shared 8081
# listener. There is no `hostnames` field here on purpose: the route must
# match a request whose Host header is the bare IP (10.10.0.2:8082), which
# is the only form a phone can use. A hostname-less route has to own its
# listener, hence the separate port.
- name: internal
namespace: internal
sectionName: hubble-ui
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
# hubble-ui Service (frontend nginx, which proxies /api to the backend)
- name: hubble-ui
port: 80