Migration from nevisAdmin 4 statefulset to deployment
This guide assumes that you have a running nevisAdmin 4 Helm installation with a nevisAdmin 4 statefulset deployed. To migrate from the statefulset to a deployment, the following steps are required:
Prerequisites
- A nevisAdmin 4 Helm installation running a NevisAdmin 4 statefulset.
- Helm CLI installed and configured.
kubectlaccess to the target Kubernetes cluster.
Migration Steps
- Prepare the encryption secret with values from the existing statefulset's persistent volume:
kubectl create secret generic nevisadmin4-encryption-secret \
--from-literal=.k=$(kubectl exec -n <release-namespace> nevisadmin4-0 -c nevisadmin4 -- cat /var/opt/nevisadmin4/secret/.k) \
--from-literal=.r=$(kubectl exec -n <release-namespace> nevisadmin4-0 -c nevisadmin4 -- cat /var/opt/nevisadmin4/secret/.r) \
-n <release-namespace>
- Upgrade the helm release with the new value for
nevisAdmin4.encryptionSecret:
helm upgrade <release-name> <chart-path> -n <release-namespace> --set nevisAdmin4.encryptionSecret=nevisadmin4-encryption-secret --wait
- Clean up the persistent volume claim for the old statefulset:
kubectl delete pvc -n <release-namespace> -l component=nevisadmin4