You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{< banner "notice" "NGINX Gateway Fabric 2.0 is now available" >}}
2
2
3
-
NGINX Gateway Fabric 2.0 has released! Follow [this guide]({{< ref "/ngf/install/upgrade-2.0" >}}) to upgrade from 1.x to 2.0.
3
+
NGINX Gateway Fabric 2.0 has released! Follow [these instructions]({{< ref "/ngf/install/upgrade-version.md#upgrade-from-v1x-to-v2x" >}}) to upgrade from 1.x to 2.0.
4
4
5
-
For 1.x, checkout [an older version](https://github.com/nginx/nginx-gateway-fabric/tree/release-1.6) of documentation.
5
+
For 1.x, checkout [an older version]({{< ref "/ngf/install/upgrade-version.md#access-nginx-gateway-fabric-1x-documentation" >}}) of documentation.
{{< note >}} Requires the Gateway APIs installed from the experimental channel. {{< /note >}}
165
155
166
-
---
167
156
168
157
#### Examples
169
158
170
159
You can find several examples of configuration options of the `values.yaml` file in the [helm examples](https://github.com/nginx/nginx-gateway-fabric/tree/v{{< version-ngf >}}/examples/helm) directory.
171
160
172
-
---
173
-
174
161
### Access NGINX Gateway Fabric
175
162
176
163
{{< include "/ngf/installation/expose-nginx-gateway-fabric.md" >}}
177
164
178
-
---
179
-
180
-
## Upgrade NGINX Gateway Fabric
181
-
182
-
{{< important >}} NGINX Plus users that are upgrading from version 1.4.0 to 1.5.x need to install an NGINX Plus JWT
183
-
Secret before upgrading. Follow the steps in the [Before you begin](#before-you-begin) section to create the Secret. If you use a different name than the default `nplus-license` name, specify the Secret name by setting `--set nginx.usage.secretName=<secret-name>` when running `helm upgrade`. {{< /important >}}
184
-
185
-
{{< tip >}} For guidance on zero downtime upgrades, see the [Delay Pod Termination](#configure-delayed-pod-termination-for-zero-downtime-upgrades) section below. {{< /tip >}}
186
-
187
-
{{< note >}} To upgrade from version 1.x to 2.x, please refer to this [guide]({{< ref "/ngf/install/upgrade-2.0.md" >}}). {{< /note >}}
188
-
189
-
To upgrade NGINX Gateway Fabric and get the latest features and improvements, take the following steps:
190
-
191
-
---
192
-
193
-
### Upgrade Gateway resources
194
-
195
-
{{< include "/ngf/installation/upgrade-api-resources.md" >}}
196
-
197
-
---
198
-
199
-
### Upgrade NGINX Gateway Fabric CRDs
200
-
201
-
Helm's upgrade process does not automatically upgrade the NGINX Gateway Fabric CRDs (Custom Resource Definitions).
202
-
203
-
To upgrade the CRDs, take the following steps:
204
-
205
-
1. {{< include "/ngf/installation/helm/pulling-the-chart.md" >}}
{{<note>}}Ignore the following warning, as it is expected.{{</note>}}
214
-
215
-
```text
216
-
Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply.
217
-
```
218
-
219
-
---
220
-
221
-
### Upgrade NGINX Gateway Fabric release
222
-
223
-
{{< important >}} NGINX Plus users that are upgrading from version 1.4.0 to 1.5.x need to install an NGINX Plus JWT
224
-
Secret before upgrading. Follow the steps in the [Before you begin](#before-you-begin) section to create the Secret. If you use a different name than the default `nplus-license` name, specify the Secret name by setting `--set nginx.usage.secretName=<secret-name>` when running `helm upgrade`. {{< /important >}}
225
-
226
-
There are two possible ways to upgrade NGINX Gateway Fabric. You can either upgrade from the OCI registry, or download the chart and upgrade from the source.
227
-
228
-
---
229
-
230
-
#### Upgrade from the OCI registry
231
-
232
-
To upgrade to the latest stable release of NGINX Gateway Fabric, run:
If needed, replace `ngf` with your chosen release name.
239
-
240
-
---
241
-
242
-
#### Upgrade from sources
243
-
244
-
{{< include "/ngf/installation/helm/pulling-the-chart.md" >}}
245
-
246
-
To upgrade, run: the following command:
247
-
248
-
```shell
249
-
helm upgrade ngf . -n nginx-gateway
250
-
```
251
-
252
-
If needed, replace `ngf` with your chosen release name.
253
-
254
-
---
255
-
256
-
## How to upgrade from NGINX OSS to NGINX Plus
257
-
258
-
To upgrade from NGINX OSS to NGINX Plus, update the Helm command to include the necessary values for Plus:
259
-
260
-
{{< note >}} If applicable, replace the F5 Container registry `private-registry.nginx.com` with your internal registry for your NGINX Plus image, and replace `nginx-plus-registry-secret` with your Secret name containing the registry credentials.{{< /note >}}
261
-
262
-
{{< important >}} Ensure that you [Create the required JWT Secrets]({{< ref "/ngf/install/nginx-plus.md" >}}) before installing.{{< /important >}}
If needed, replace `ngf` with your chosen release name.
269
-
270
-
---
271
-
272
-
## Delay pod termination for zero downtime upgrades {#configure-delayed-pod-termination-for-zero-downtime-upgrades}
273
-
274
-
{{< include "/ngf/installation/delay-pod-termination/delay-pod-termination-overview.md" >}}
275
-
276
-
Follow these steps to configure delayed pod termination:
277
-
278
-
1. Open the `values.yaml` for editing.
279
-
280
-
1.**Add delayed shutdown hooks**:
281
-
282
-
- In the `values.yaml` file, add `lifecycle: preStop` hooks to both the `nginx` and `nginx-gateway` container definitions. These hooks instruct the containers to delay their shutdown process, allowing time for connections to close gracefully. Update the `sleep` value to what works for your environment.
283
-
284
-
```yaml
285
-
nginxGateway:
286
-
<...>
287
-
lifecycle:
288
-
preStop:
289
-
exec:
290
-
command:
291
-
- /usr/bin/gateway
292
-
- sleep
293
-
- --duration=40s # This flag is optional, the default is 30s
294
-
295
-
nginx:
296
-
<...>
297
-
lifecycle:
298
-
preStop:
299
-
exec:
300
-
command:
301
-
- /bin/sleep
302
-
- "40"
303
-
```
304
-
305
-
1. **Set the termination grace period**:
306
-
307
-
- {{< include "/ngf/installation/delay-pod-termination/termination-grace-period.md">}}
308
-
309
-
1. Save the changes.
310
-
311
-
{{<see-also>}}
312
-
For additional information on configuring and understanding the behavior of containers and pods during their lifecycle, refer to the following Kubernetes documentation:
Copy file name to clipboardExpand all lines: content/ngf/install/manifests.md
-96Lines changed: 0 additions & 96 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,6 @@ docs: DOCS-1429
11
11
12
12
Learn how to install, upgrade, and uninstall NGINX Gateway Fabric using Kubernetes manifests.
13
13
14
-
---
15
-
16
14
## Before you begin
17
15
18
16
To complete this guide, you'll need to install:
@@ -43,20 +41,14 @@ To complete this guide, you'll need to install:
43
41
44
42
</details>
45
43
46
-
---
47
-
48
44
## Deploy NGINX Gateway Fabric
49
45
50
46
Deploying NGINX Gateway Fabric with Kubernetes manifests takes only a few steps. With manifests, you can configure your deployment exactly how you want. Manifests also make it easy to replicate deployments across environments or clusters, ensuring consistency.
51
47
52
-
---
53
-
54
48
### Install the Gateway API resources
55
49
56
50
{{< include "/ngf/installation/install-gateway-api-resources.md" >}}
{{< note >}} By default, NGINX Gateway Fabric is installed in the **nginx-gateway** namespace. You can deploy in another namespace by modifying the manifest files. {{< /note >}}
To confirm that NGINX Gateway Fabric is running, check the pods in the `nginx-gateway` namespace:
@@ -196,94 +184,10 @@ NAME READY STATUS RESTARTS AGE
196
184
nginx-gateway-5d4f4c7db7-xk2kq 1/1 Running 0 112s
197
185
```
198
186
199
-
---
200
-
201
187
### Access NGINX Gateway Fabric
202
188
203
189
{{< include "/ngf/installation/expose-nginx-gateway-fabric.md" >}}
204
190
205
-
---
206
-
207
-
## Upgrade NGINX Gateway Fabric
208
-
209
-
{{< important >}} NGINX Plus users that are upgrading from version 1.4.0 to 1.5.x need to install an NGINX Plus JWT
210
-
Secret before upgrading. Follow the steps in the [Before you begin](#before-you-begin) section to create the Secret, which is referenced in the updated deployment manifest for the newest version. {{< /important >}}
211
-
212
-
{{< tip >}} For guidance on zero downtime upgrades, see the [Delay Pod Termination](#configure-delayed-pod-termination-for-zero-downtime-upgrades) section. {{</ tip >}}
213
-
214
-
{{< note >}} To upgrade from version 1.x to 2.x, please refer to this [guide]({{< ref "/ngf/install/upgrade-2.0.md" >}}). {{< /note >}}
215
-
216
-
To upgrade NGINX Gateway Fabric and get the latest features and improvements, take the following steps:
217
-
218
-
### Upgrade Gateway API resources
219
-
220
-
{{< include "/ngf/installation/upgrade-api-resources.md" >}}
221
-
222
-
### Upgrade NGINX Gateway Fabric CRDs
223
-
224
-
To upgrade the Custom Resource Definitions (CRDs), run:
Select the deployment manifest that matches your current deployment from the table above in the [Deploy NGINX Gateway Fabric](#deploy-nginx-gateway-fabric) section and apply it.
233
-
234
-
---
235
-
236
-
## Delay pod termination for zero downtime upgrades {#configure-delayed-pod-termination-for-zero-downtime-upgrades}
237
-
238
-
{{< include "/ngf/installation/delay-pod-termination/delay-pod-termination-overview.md" >}}
239
-
240
-
Follow these steps to configure delayed pod termination:
241
-
242
-
1. Open the `deploy.yaml` for editing.
243
-
244
-
1. **Add delayed shutdown hooks**:
245
-
246
-
- In the `deploy.yaml` file, add `lifecycle: preStop` hooks to both the `nginx` and `nginx-gateway` container definitions. These hooks instruct the containers to delay their shutdown process, allowing time for connections to close gracefully. Update the `sleep` value to what works for your environment.
247
-
248
-
```yaml
249
-
<...>
250
-
name: nginx-gateway
251
-
<...>
252
-
lifecycle:
253
-
preStop:
254
-
exec:
255
-
command:
256
-
- /usr/bin/gateway
257
-
- sleep
258
-
- --duration=40s # This flag is optional, the default is 30s
259
-
<...>
260
-
name: nginx
261
-
<...>
262
-
lifecycle:
263
-
preStop:
264
-
exec:
265
-
command:
266
-
- /bin/sleep
267
-
- "40"
268
-
<...>
269
-
```
270
-
271
-
1. **Set the termination grace period**:
272
-
273
-
- {{< include "/ngf/installation/delay-pod-termination/termination-grace-period.md" >}}
274
-
275
-
1. Save the changes.
276
-
277
-
{{< see-also >}}
278
-
For additional information on configuring and understanding the behavior of containers and pods during their lifecycle, refer to the following Kubernetes documentation:
0 commit comments