Gateway API Cheatsheet

← All cheatsheets
$ kubectl get gateways,httproutes -A
IntermediateNetworkingUpdated October 2026

Install the Gateway API CRDs, inspect Gateways and Routes, debug route status, and copy common manifests for routing and traffic splitting.

Install and inspect

Pick the latest version from the Gateway API releases page and replace the version below.

kubectl apply --server-side -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.3.0/standard-install.yamlInstall the standard channel CRDs
kubectl get crd | grep gateway.networking.k8s.ioCheck which Gateway API CRDs exist
kubectl get gatewayclassList GatewayClasses and their controllers
kubectl get gateways -AList Gateways and their addresses
kubectl get httproutes -AList HTTPRoutes
kubectl get grpcroutes,tlsroutes -AList gRPC and TLS routes
kubectl get referencegrants -AList cross-namespace permissions

Debugging

kubectl describe gateway web -n infraCheck listener status and attached routes
kubectl get httproute app -n default -o jsonpath="{.status.parents[*].conditions}"See if a route was accepted and resolved
kubectl get gateway web -n infra -o jsonpath="{.status.addresses[*].value}"Get the Gateway IP or hostname
curl -H "Host: app.example.com" http://$GATEWAY_IP/Test routing by host header

Gateway

apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
  name: web
  namespace: infra
spec:
  gatewayClassName: eg
  listeners:
  - name: http
    protocol: HTTP
    port: 80
    allowedRoutes:
      namespaces:
        from: All

HTTPRoute with a 90/10 traffic split

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
  name: app
  namespace: default
spec:
  parentRefs:
  - name: web
    namespace: infra
  hostnames: ["app.example.com"]
  rules:
  - matches:
    - path:
        type: PathPrefix
        value: /
    backendRefs:
    - name: app-v1
      port: 80
      weight: 90
    - name: app-v2
      port: 80
      weight: 10