Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Kubernetes Gateway API CRDs

By default, the Gateway API Custom Resource Definitions (CRDs) are not installed in most Kubernetes clusters. Ensure that the Kubernetes Gateway API CRDs have been installed before using the Gateway API.

Run the following command to check whether the Gateway API CRDs have been installed in the Kubernetes cluster: If not, the system automatically downloads and installs the Gateway API CRDs 1.3.0 from the Internet.

kubectl get crd gateways.gateway.networking.k8s.io &> /dev/null || \
{ kubectl kustomize "github.com/kubernetes-sigs/gateway-api/config/crd?ref=v1.3.0" | kubectl apply -f -; }

If the target network environment cannot download the Gateway API installation file, manually download the standard-install.yaml file in another environment, upload the file to the target environment, and then run the following command to install the Gateway API:

kubectl apply -f standard-install.yaml