To add a VIP to an NSP cluster deployment
Purpose
Perform this procedure to add a VIP to an NSP cluster already configured with one client VIP.
Note: release-ID in a file path 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
Steps
1 |
Enter the following on the NSP deployer host to stop the NSP cluster: Note: In a DR deployment, stop the standby cluster first and then the primary 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 uninstall --undeploy --clean # /opt/nsp/NSP-CN-DEP-release-ID/bin/nspdeployerctl uninstall --undeploy --clean ↵ |
2 |
In a DR deployment, perform Step 3 to Step 14 on the primary cluster first. When the primary cluster is up and running, perform Step 3 to Step 14 on the standby cluster. |
3 |
Enter the following on the NSP deployer host # cd /opt/nsp/nsp-k8s-deployer-release-ID/config ↵ |
4 |
Open the following file using a plain-text editor such as vi: k8s-deployer.yml |
5 |
In the following section, specify the virtual IP addresses for the NSP to use as the internal load-balancer endpoints. Note: A single-node NSP cluster requires at least the client_IP address. The addresses are the virtualIP values for NSP client, internal, and mediation access that you intend to specify in Step 11 in the nsp-config.yml file. loadBalancerExternalIps: - client_IP - internal_IP - mediation_IP - trapV4_mediation_IP - trapV6_mediation_IP - flowV4_mediation_IP - flowV6_mediation_IP |
6 |
Save and close the k8s-deployer.yml file. |
7 |
Create a backup copy of the updated k8s-deployer.yml file, and transfer the backup copy to a station that is separate from the NSP system, and preferably in a remote facility. Note: The backup file is crucial in the event of an NSP deployer host failure, and must be copied to a separate station. |
8 |
Enter the following: # cd /opt/nsp/nsp-k8s-deployer-release-ID/bin ↵ |
9 |
Enter the following to create the cluster configuration: # ./nspk8sctl config -c ↵ The following is displayed when the creation is complete: ✔ Cluster hosts configuration is created at: /opt/nsp/nsp-k8s-deployer-release-ID/config/hosts.yml |
10 |
Enter the following: Note: If the NSP cluster VMs do not have the required SSH key, you must include the --ask-pass argument in the following command, and are subsequently prompted for the root password of each cluster member: nspk8sctl --ask-pass install .# ./nspk8sctl install ↵ The NSP Kubernetes environment is deployed. |
11 |
Add the virtual IP addresses in Step 5 to the nsp-config.yml file.
|
12 |
Enter the following: # cd /opt/nsp/NSP-CN-DEP-release-ID/bin ↵ |
13 |
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. |
14 |
Monitor and validate the NSP cluster initialization. Note: You must not proceed to the next step until each NSP pod is operational.
End of steps |