Skip to content

Instantly share code, notes, and snippets.

@chadmcrowell
Created February 19, 2026 05:23
Show Gist options
  • Select an option

  • Save chadmcrowell/0f3ec25d2fe9d878b7d7a04b46178cfb to your computer and use it in GitHub Desktop.

Select an option

Save chadmcrowell/0f3ec25d2fe9d878b7d7a04b46178cfb to your computer and use it in GitHub Desktop.
HTTPRoute
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: web-route
namespace: default
spec:
parentRefs:
- name: prod-gateway
namespace: infra
hostnames:
- "myapp.example.com"
rules:
- matches:
- path:
type: PathPrefix
value: /api
backendRefs:
- name: api-service
port: 8080
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: web-service
port: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment