To upgrade the NSP Kubernetes environment
Purpose
Perform this procedure to upgrade the Kubernetes deployment environment in an NSP system. The procedure upgrades only the deployment infrastructure, and not the NSP software.
Note: You must upgrade Kubernetes in each NSP cluster of a DR deployment, as described in the procedure.
Note: The following denote a specific NSP release ID in a file path:
-
base_load—original deployed version of the installed NSP release, for example, Release 24.11.
-
latest_load—version of the latest applied NSP service pack, for example, Release 24.11 SP7
Each release ID has the following format:
R.r.p-rel.version
where
R.r.p is the NSP release, in the form MAJOR.minor.patch
version is a numeric value
Kubernetes upgrade considerations
-
Before you attempt to upgrade the Kubernetes deployment environment:
-
For non-root installs, you must add the nspk8supdate script to the sudoers file for the NSP admin user.
See Restricting root-user system access for examples of sudoers files.
-
If you are not upgrading from the immediately previous Kubernetes release, and you are using your own storage, by default the Kubernetes cluster is uninstalled and data is not preserved during the Kubernetes upgrade. Perform Step 15 to preserve your data.
Steps
Note: The script in Deploy new NSP Kubernetes and NSP registry software disables SELinux enforcing mode on deployer and the cluster VMs, and does not automatically re-enable it at the end of the upgrade process. You must manually re-enable SELinux enforcing mode.
Download Kubernetes upgrade bundle | |
1 |
Download the following from the NSP downloads page on the Nokia Support portal to a local station that is not part of the NSP deployment: Note: The download takes considerable time; while the download is in progress, you may proceed to Step 2.
where R_r is the NSP release ID, in the form Major_minor |
Verify NSP cluster readiness | |
2 |
Perform the following steps on each NSP cluster to verify that the cluster is fully operational.
|
Back up NSP databases | |
3 |
On the standalone NSP cluster, or the primary cluster in a DR deployment, perform “How do I back up the NSP cluster databases?” in the NSP System Administrator Guide. Note: The backup takes considerable time; while the backup is in progress, you may proceed to Step 4. |
Back up system configuration files | |
4 |
Perform the following on the NSP deployer host in each data center. Note: In a DR deployment, you must clearly identify the source cluster of each set of backup files.
|
Verify checksum of downloaded file | |
5 |
It is strongly recommended that you verify the message digest of each NSP file that you download from the Nokia Support portal. The downloaded .cksum file contains checksums for comparison with the output of the RHEL md5sum, sha256sum, or sha512sum commands. When the file download is complete, verify the file checksum.
|
6 |
Perform the following steps on the NSP deployer host in each data center, and then go to Deploy new NSP Kubernetes and NSP registry software. Note: In a DR deployment, you must perform the steps first on the NSP deployer host in the primary data center. |
7 |
If the NSP deployer host is deployed in a VM created using an NSP RHEL OS disk image, perform To apply a RHEL update to an NSP image-based OS. |
8 |
Copy the downloaded NSP_K8S_DEPLOYER_R_r.tar.gz file to the /opt/nsp directory. |
9 |
Expand the software bundle file.
|
Deploy new NSP Kubernetes and NSP registry software | |
10 |
Perform the following on the NSP deployer host in each data center. Note: In a DR deployment, upgrade the clusters as follows:
|
11 |
Enter the following: # cd /opt/nsp/nsp-k8s-deployer-new-release-ID/bin ↵ |
12 |
If you are not upgrading from the immediately previous Kubernetes release, and you are using your own storage, go to Step 15. Note: If the NSP cluster VMs do not have the required SSH key, you must include the --ask-pass argument in the command, as shown in the following example, and are subsequently prompted for the root password of each cluster member: nspk8supgrade ... --ask-pass Note: You can use the --skip-nsp-redeploy argument for SELinux enforcing systems that need to update their SELinux policies. Enter the following to install or upgrade the Kubernetes software: # ./nspk8supgrade -K /opt/nsp/nsp-k8s-deployer-old-release-ID -R /opt/nsp/nsp-registry-old_load-ID -N /opt/nsp/NSP-CN-DEP-base_load-ID -P /opt/nsp/NSP-CN-DEP-latest_load/bin/ ↵ where nsp-k8s-deployer-old-release-ID is the previous Kubernetes base directory; nsp-registry-old_load-ID is the previous registry base directory NSP-CN-DEP-base_load-ID is the original deployed version of the installed NSP release NSP-CN-DEP-latest_load is the version of the latest applied NSP service pack The following warning is displayed before the script runs: Wed Jul 9 17:01:06 EDT 2025 -> *** WARNING *** Wed Jul 9 17:01:06 EDT 2025 -> Wed Jul 9 17:01:06 EDT 2025 -> Upgrading k8s will require NSP be uninstalled and reinstalled. Wed Jul 9 17:01:06 EDT 2025 -> Data will be preserved. Wed Jul 9 17:01:06 EDT 2025 -> Wed Jul 9 17:01:06 EDT 2025 -> If SELinux is in enforcing mode on the deployer or cluster hosts it will be set to permissive. Wed Jul 9 17:01:06 EDT 2025 -> The Sys Admin procedures for updating SELinux and setting it back to enforcing must be Wed Jul 9 17:01:06 EDT 2025 -> performed manually by the user after this upgrade completes. Wed Jul 9 17:01:06 EDT 2025 -> Would you like to continue with the upgrade? [y/n] |
13 |
If the script fails, an error message is displayed that indicates what step number failed.
|
14 |
Go to Step 22. |
Deploy new NSP Kubernetes and NSP registry software using your own storage | |
15 |
If you are not upgrading from the immediately previous Kubernetes release, and you are using your own storage, perform the one of the following pathways to install or upgrade the Kubernetes software and to preserve your data. |
16 |
In a DR deployment, use this pathway to access detailed steps. Perform the steps on the standby cluster first, and then on the original active cluster; this ensures that the databases are not lost.
|
17 |
In a standalone cluster, use this pathway for detailed steps.
|
18 |
Enter the following with the --skip-nsp-redeploy option: # ./nspk8supgrade -K /opt/nsp/nsp-k8s-deployer-old-release-ID -R /opt/nsp/nsp-registry-old_load-ID -N /opt/nsp/NSP-CN-DEP-base_load-ID -P /opt/nsp/NSP-CN-DEP-latest_load/bin/ --skip-nsp-redeploy ↵ where nsp-k8s-deployer-old-release-ID is the previous Kubernetes base directory; nsp-registry-old_load-ID is the previous registry base directory NSP-CN-DEP-base_load-ID is the original deployed version of the installed NSP release NSP-CN-DEP-latest_load is the version of the latest applied NSP service pack |
19 |
Reconfigure the storage classes for the NSP cluster. Step 55 has examples of storage class configurations; if you are using other types of storage, see the appropriate storage documentation. |
20 |
Enter the following to deploy the NSP software in the NSP cluster: Note: If the NSP cluster VMs do not have the required SSH key, you must include the --ask-pass argument in the command, as shown in the following example, and are subsequently prompted for the root password of each cluster member: nspdeployerctl --ask-pass install --config --deploy # ./nspdeployerctl install --config --deploy ↵ The specified NSP functions are installed and initialized. |
21 |
Monitor and validate the NSP cluster initialization. Note: You must not proceed to the next step until each NSP pod is operational.
|
Verify upgraded NSP cluster operation | |
22 |
Use a browser to open the NSP cluster URL. |
23 |
Verify the following:
|
24 |
As required, use the NSP to monitor device discovery and to check network management functions. Note: You do not need to perform the step on the standby NSP cluster. Note: If you are upgrading Kubernetes in a standalone NSP cluster, or the primary NSP cluster in a DR deployment, the completed NSP cluster initialization marks the end of the network management outage. |
Restore SELinux enforcing mode | |
25 |
If SELinux enforcing mode was set to permissive mode, perform the following steps:
|
26 |
Close the open console windows. End of steps |