The following covers redeploying the Nexus service and restoring the data.
(ncn-mw#
) Verify that an export of the Nexus PVC data exists.
Verify that the nexus-bak
PVC exists.
kubectl get pvc -n nexus nexus-bak
Example output:
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
nexus-bak Bound pvc-f058bf3b-97c0-4d7e-ab60-7294eaa18788 1000Gi RWX ceph-cephfs-external 6d
(ncn-mw#
) Uninstall the chart and wait for the resources to terminate.
Note the version of the chart that is currently deployed.
helm history -n nexus cray-nexus
Example output:
REVISION UPDATED STATUS CHART APP VERSION DESCRIPTION
1 Tue Aug 2 22:14:31 2022 deployed cray-nexus-0.6.0 3.25.0 Install complete
Uninstall the chart.
helm uninstall -n nexus cray-nexus
Example output:
release "cray-nexus" uninstalled
Wait for the resources to terminate and delete the nexus-data
PVC if it still exists. Do not delete the nexus-bak
PVC.
Verify that no Nexus pods are running.
watch "kubectl get pods -n nexus -l app=nexus"
Example output:
No resources found in nexus namespace.
Delete the nexus-data
PVC if it still exists.
kubectl delete pvc nexus-data -n nexus
Example output:
persistentvolumeclaim "nexus-data" deleted
(ncn-mw#
) Follow the Redeploying a Chart procedure with the following specifications:
Name of chart to be redeployed: cray-nexus
Base name of manifest: nexus
Chart files are located in Nexus.
When reaching the step to update customizations, no edits need to be made to the customizations file.
When running the loftsman ship
command, use the following command:
loftsman ship --charts-repo https://csm-algol60.net/artifactory/csm-helm-charts/ --manifest-path "${CUSTOMIZED_CHART_FILE}"
When reaching the step to validate that the redeploy was successful, perform the following step:
Only follow this step as part of the previously linked chart redeploy procedure.
Wait for the resources to start.
watch "kubectl get pods -n nexus -l app=nexus"
Example output:
NAME READY STATUS RESTARTS AGE
nexus-7f79cd64c8-7j8tb 2/2 Running 0 30m
(ncn-mw#
) Restore the critical data.