Skip to content

Instantly share code, notes, and snippets.

@janakiramm
Created November 19, 2025 06:44
Show Gist options
  • Select an option

  • Save janakiramm/9e05c94a93db59906efd358fcf50881d to your computer and use it in GitHub Desktop.

Select an option

Save janakiramm/9e05c94a93db59906efd358fcf50881d to your computer and use it in GitHub Desktop.
NGINX Gateway Fabric Route
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: echo-route
namespace: demo
spec:
parentRefs:
- name: demo-gateway
namespace: nginx-gateway
rules:
- matches:
- path:
type: PathPrefix
value: /web
backendRefs:
- name: demo-app
port: 80
- matches:
- path:
type: PathPrefix
value: /api
backendRefs:
- name: demo-api
port: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment