Conversation
✅ Deploy Preview will be available once build job completes!
|
|
|
| --- | ||
| title: Migrate NGINX Agent v2 to v3 | ||
| weight: 600 | ||
| toc: true | ||
| nd-docs: DOCS-1227 | ||
| nd-content-type: how-to | ||
| nd-product: NAGENT | ||
| --- |
There was a problem hiding this comment.
Please check the new template for how-to guides
https://github.com/nginx/documentation/blob/main/templates/how-to/guide-how-to.md
Add in a link to full list of v3 env vars
…dd migration/; remove deprecated upgrade-v2-v3.md
| @@ -0,0 +1,64 @@ | |||
| --- | |||
| title: Migrate NGINX Agent v2 to v3 with Docker Compose | |||
There was a problem hiding this comment.
| title: Migrate NGINX Agent v2 to v3 with Docker Compose | |
| title: Migrate with Docker Compose |
Title was redundant. Suggest we shorten.
| Do not run NGINX Agent v2 and v3 concurrently in the same container or on the same host. | ||
| {{< /call-out >}} | ||
|
|
||
| ## Steps |
There was a problem hiding this comment.
| ## Steps | |
| ## Migrate |
| @@ -0,0 +1,64 @@ | |||
| --- | |||
| title: Migrate NGINX Agent v2 to v3 in a Docker container | |||
There was a problem hiding this comment.
| title: Migrate NGINX Agent v2 to v3 in a Docker container | |
| title: Migrate in a Docker container |
| --- | ||
|
|
||
| ## Before you begin | ||
|
|
There was a problem hiding this comment.
| - Ensure you have: | |
| - Registry access for agent v3 images. | |
| - NGINX_LICENSE_JWT and the NGINX Agent command auth token (data plane key). | |
| Do not run NGINX Agent v2 and v3 concurrently in the same container or on the same host. | ||
| {{< /call-out >}} | ||
|
|
||
| ## Steps |
There was a problem hiding this comment.
| ## Steps | |
| ## Migrate |
|
|
||
| ## Before you begin | ||
|
|
||
| - Registry access for agent v3 images. |
There was a problem hiding this comment.
Move under "Ensure you have:"
There was a problem hiding this comment.
Use the full product name: NGINX Agent
| ## Before you begin | ||
|
|
||
| - Registry access for agent v3 images. | ||
| - NGINX_LICENSE_JWT and the NGINX Agent command auth token (data plane key). |
There was a problem hiding this comment.
Move under "Ensure you have:"
| @@ -0,0 +1,96 @@ | |||
| --- | |||
| title: Migrate NGINX Agent v2 to v3 on Kubernetes | |||
There was a problem hiding this comment.
| title: Migrate NGINX Agent v2 to v3 on Kubernetes | |
| title: Migrate on Kubernetes |
| --- | ||
|
|
||
| ## Before you begin | ||
|
|
There was a problem hiding this comment.
| - Ensure you have: | |
| - kubectl context set to the target cluster and namespace. | |
| - Permissions to deploy to the namespace. | |
| - Required registry credentials available. | |
| - A Secret for NGINX_LICENSE_JWT or that you can create one. | |
| - Plan a maintenance window and test in a non‑production environment first. | |
| Do not run NGINX Agent v2 and v3 in the same pod or on the same node as part of the migration. | ||
| {{< /call-out >}} | ||
|
|
||
| ## Steps |
There was a problem hiding this comment.
| ## Steps | |
| ## Migrate |
| @@ -0,0 +1,63 @@ | |||
| --- | |||
| title: Migrate NGINX Agent v2 to v3 on VMs (RPM/DEB) | |||
There was a problem hiding this comment.
| title: Migrate NGINX Agent v2 to v3 on VMs (RPM/DEB) | |
| title: Migrate on VMs (RPM/DEB) |
| Do not run NGINX Agent v2 and v3 concurrently on the same host. | ||
| {{< /call-out >}} | ||
|
|
||
| ## Steps |
There was a problem hiding this comment.
| ## Steps | |
| ## Migrate |
| sudo apt-get install -y --only-upgrade nginx-agent -o Dpkg::Options::="--force-confold" | ||
| ``` | ||
|
|
||
| 3. If using a config file, ensure required values are present. If you used Config Sync Groups in v2, add the following label in v3: |
There was a problem hiding this comment.
| 3. If using a config file, ensure required values are present. If you used Config Sync Groups in v2, add the following label in v3: | |
| 3. If you are using a config file, ensure required values are present. If you used Config Sync Groups in v2, add the following label in v3: |
|
|
||
| ## Rollback | ||
|
|
||
| - Reinstall the previous v2 package and restore your configuration backup if required. |
There was a problem hiding this comment.
| - Reinstall the previous v2 package and restore your configuration backup if required. | |
| - Reinstall the previous v2 package and, if required, restore your configuration backup. |
| 1. Open an SSH connection to the server where you've installed NGINX Agent. | ||
|
|
||
| To migrate NGINX Agent containers, we provide a script to convert NGINX Agent v2 config files to NGINX Agent v3 config files: [NGINX Agent Config Upgrade Script](https://github.com/nginx/agent/blob/v3/scripts/packages/upgrade-agent-config.sh) | ||
| 1. Make a backup copy of the following locations to ensure that you can successfully recover if the upgrade does not complete |
There was a problem hiding this comment.
| 1. Make a backup copy of the following locations to ensure that you can successfully recover if the upgrade does not complete | |
| 1. Make a backup copy of the following locations to ensure that you can recover if the upgrade does not complete |
kkyle-f5
left a comment
There was a problem hiding this comment.
I made a few suggestions.
Proposed changes
Checklist
Before sharing this pull request, I completed the following checklist:
Footnotes
Potentially sensitive information includes personally identify information (PII), authentication credentials, and live URLs. Refer to the style guide for guidance about placeholder content. ↩