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

28 lines
974 B
YAML
Raw Permalink 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 Gateway on port 8084 — deliberately NOT the shared `internal`
# gateway. 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:8084), which
# is the only form a phone can use. Cilium merges hostname-less routes that
# share a Gateway into one 50/50 weighted route, so a bare-IP service needs
# its own Gateway as well as its own port.
- name: hubble-ui
namespace: internal
sectionName: http-internal
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
# hubble-ui Service (frontend nginx, which proxies /api to the backend)
- name: hubble-ui
port: 80