Skip to content

Commit c15bed3

Browse files
authored
Use server side apply for NGF CRDs (#3589)
Update docs and Makefile to use kubectl server side apply for NGF CRDs. Problem: The NginxProxy CRD is getting too large for the normal client side kubectl apply to handle. Solution: Update docs and Makefile to use kubectl server side apply for NGF CRDs. Testing: Deployed NGF through manifests using server-side applied CRDs and manually ran through the policy examples and the cafe-example to make sure NGF still works.
1 parent 75bde7c commit c15bed3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ generate-crds: ## Generate CRDs and Go types using kubebuilder
126126

127127
.PHONY: install-crds
128128
install-crds: ## Install CRDs
129-
kubectl kustomize $(SELF_DIR)config/crd | kubectl apply -f -
129+
kubectl kustomize $(SELF_DIR)config/crd | kubectl apply --server-side -f -
130130

131131
.PHONY: install-gateway-crds
132132
install-gateway-crds: ## Install Gateway API CRDs

charts/nginx-gateway-fabric/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Helm does not upgrade the NGINX Gateway Fabric CRDs during a release upgrade. Be
139139
must [pull the chart](#pulling-the-chart) from GitHub and run the following command to upgrade the CRDs:
140140

141141
```shell
142-
kubectl apply -f crds/
142+
kubectl apply --server-side -f crds/
143143
```
144144

145145
The following warning is expected and can be ignored:

charts/nginx-gateway-fabric/README.md.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Helm does not upgrade the NGINX Gateway Fabric CRDs during a release upgrade. Be
137137
must [pull the chart](#pulling-the-chart) from GitHub and run the following command to upgrade the CRDs:
138138

139139
```shell
140-
kubectl apply -f crds/
140+
kubectl apply --server-side -f crds/
141141
```
142142

143143
The following warning is expected and can be ignored:

docs/developer/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ This will build the docker images `nginx-gateway-fabric:<your-user>` and `nginx-
201201
If the only change is the image repository and tag, you can update the `kustomization.yaml` file in `deploy/` with the desired values and deployment mainifest and run the following commands:
202202

203203
```shell
204-
kubectl apply -f deploy/crds.yaml
204+
kubectl apply --server-side -f deploy/crds.yaml
205205
kubectl kustomize deploy | kubectl apply -f -
206206
```
207207

0 commit comments

Comments
 (0)