This directory contains sample manifests and step-by-step instructions for deploying a Gateway API controller on Kubernetes local setup.
- A running Kubernetes cluster (tested with Docker Desktop)
- kubectl
- Your controller image built locally as
gw-controller:localThe image can be built by running the following command from the root of this repo:
CGO_ENABLED=0 GOOS=linux go build -o api-gateway-controller cmd/main.go && docker build -t gw-controller:local .Apply the latest CRDs directly from the official repository:
kubectl apply -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.3.0/standard-install.yamlkubectl apply -f namespace.yamlUpdate the values to your actual credentials before applying:
kubectl apply -f secret.yamlkubectl apply -f rbac.yamlkubectl apply -f deployment.yamlnamespace.yaml— Namespace for the controllersecret.yaml— API credentials for serverscom (update these for your environment)rbac.yaml— ServiceAccount and required RBAC permissionsdeployment.yaml— Deployment manifest for the controller
Note: Adjust the image ( image with gw controller should exist ), environment variables, and secrets as needed for your cluster.