Skip to content

Add v2 to v3 migration guide#1843

Open
nginx-seanmoloney wants to merge 4 commits intomainfrom
agent/upgrade-v2-v3-doc
Open

Add v2 to v3 migration guide#1843
nginx-seanmoloney wants to merge 4 commits intomainfrom
agent/upgrade-v2-v3-doc

Conversation

@nginx-seanmoloney
Copy link
Copy Markdown
Contributor

@nginx-seanmoloney nginx-seanmoloney commented Apr 9, 2026

Proposed changes

  • Add v2 to v3 migration guide
    • Document differerent upgrade scenarios
    • Add troubleshooting and post migration checks

Checklist

Before sharing this pull request, I completed the following checklist:

Footnotes

  1. Potentially sensitive information includes personally identify information (PII), authentication credentials, and live URLs. Refer to the style guide for guidance about placeholder content.

@nginx-seanmoloney nginx-seanmoloney requested a review from a team as a code owner April 9, 2026 14:00
@nginx-seanmoloney nginx-seanmoloney marked this pull request as draft April 9, 2026 14:00
@github-actions github-actions bot added documentation Improvements or additions to documentation product/nginx-one-console Issues related to NGINX One Console labels Apr 9, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

Deploy Preview will be available once build job completes!

Name Link
😎 Deploy Preview https://frontdoor-test-docs.nginx.com/previews/docs/1843/

@fabriziofiorucci
Copy link
Copy Markdown
Contributor

Migrate NGINX Agent running in containers - I presume this refers to the case where I have a pod running NGINX and the Agent, and the Agent's config file is mounted through a ConfigMap. Am I correct here? In case I am, it might be worth mentioning this in the MD file

@nginx-seanmoloney nginx-seanmoloney marked this pull request as ready for review April 13, 2026 20:47
Comment on lines +1 to +8
---
title: Migrate NGINX Agent v2 to v3
weight: 600
toc: true
nd-docs: DOCS-1227
nd-content-type: how-to
nd-product: NAGENT
---
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nginx-seanmoloney nginx-seanmoloney marked this pull request as draft April 15, 2026 09:19
Add in a link to full list of v3 env vars
…dd migration/; remove deprecated upgrade-v2-v3.md
@github-actions github-actions bot added the product/agent Issues related to NGINX Agent label Apr 16, 2026
@nginx-seanmoloney nginx-seanmoloney marked this pull request as ready for review April 16, 2026 12:07
@@ -0,0 +1,64 @@
---
title: Migrate NGINX Agent v2 to v3 with Docker Compose
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Steps
## Migrate

@@ -0,0 +1,64 @@
---
title: Migrate NGINX Agent v2 to v3 in a Docker container
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title: Migrate NGINX Agent v2 to v3 in a Docker container
title: Migrate in a Docker container

---

## Before you begin

Copy link
Copy Markdown
Contributor

@kkyle-f5 kkyle-f5 Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Steps
## Migrate


## Before you begin

- Registry access for agent v3 images.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move under "Ensure you have:"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move under "Ensure you have:"

@@ -0,0 +1,96 @@
---
title: Migrate NGINX Agent v2 to v3 on Kubernetes
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title: Migrate NGINX Agent v2 to v3 on Kubernetes
title: Migrate on Kubernetes

---

## Before you begin

Copy link
Copy Markdown
Contributor

@kkyle-f5 kkyle-f5 Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Steps
## Migrate

@@ -0,0 +1,63 @@
---
title: Migrate NGINX Agent v2 to v3 on VMs (RPM/DEB)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## 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:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

Copy link
Copy Markdown
Contributor

@kkyle-f5 kkyle-f5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made a few suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation product/agent Issues related to NGINX Agent product/nginx-one-console Issues related to NGINX One Console

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants