HTTPRoutes for Ingress
HTTPRoute is the recommended way to expose HTTP services.
Minimal example
Section titled “Minimal example”apiVersion: gateway.networking.k8s.io/v1kind: HTTPRoutemetadata: name: web namespace: webspec: parentRefs: - name: shared-gateway namespace: ingress-system hostnames: - web.example.com rules: - matches: - path: type: PathPrefix value: / backendRefs: - name: web port: 80Common patterns
Section titled “Common patterns”- Path split (for example
/apiand/to different backends). - Header-based routing for advanced traffic control.
- Weighted backend refs for gradual cutovers.
Validation checklist
Section titled “Validation checklist”- Route
Acceptedby Gateway controller. - Route
ResolvedRefsis true. - Service endpoints are healthy.
- Requests reach intended backend.