How do I restore the NSP Kubernetes secrets?
Steps
Note: Ensure that you restore each backup file on the correct NSP cluster; an NSP secrets backup is specific to an NSP cluster.
Perform the following steps in each data center to restore the NSP Kubernetes secrets.
1 |
Open a terminal session to the NSP deployer VM and log in as the root or NSP admin user. |
2 |
Enter the following on the NSP deployer VM: # cd /opt/nsp/NSP-CN-DEP-release-ID/bin ↵ |
3 |
Enter the following: ./nspdeployerctl secret -i backup_file restore ↵ where backup_file is the absolute path and filename of the secrets backup file to restore The following prompt is displayed: Please provide the encryption password for /opt/backupfile enter aes-256-ctr decryption password: |
4 |
Enter the password recorded during the backup creation. As the secrets are restored, messages like the following are displayed for each Kubernetes namespace: Restoring secrets from backup_file... secret/ca-key-pair-external created Restored secret namespace:ca-key-pair-external secret/ca-key-pair-internal created Restored secret namespace:ca-key-pair-internal secret/nsp-tls-store-pass created Restored secret namespace:nsp-tls-store-pass End of steps |