-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guide Request: Transition Nexus Deployment to StatefulSet Using Helm Chart 5.0.0 #1061
Comments
@ksh-t-z be aware, forcing this update without proper PVC migrating will / can result in data loss. AFAIU if you use a custom PVC which you did not create via the helm chart but rather feeding the created PVC reference to the chart, you should be on a good path. You seem unsure, imho you should deploy a second 4.45.1 chart using deployments, put some data into it and then try to get your upgrade working. I cannot imagine you will get any definite answers here, this is way to hot to anybody to advice. You should test drive it in a sandbox IMHO. Also, be sure to understand that 3.70.2->3.72.0 needs a database migrate to h2 if you are running OSS (see nexus release notes). |
@ksh-t-z this is a case of "it depends" and as @EugenMayer suggests you're going to want to test the process first. I'm happy to take contributions of a guide or guidance but I don't have the time to cover this nor do I want the responsibility. |
Just to extend my previous answer, if I was looking to do this today I'd take a look at snapshotting the deployment PV and restoring it to create the stateful set PV before upgrading. |
@ksh-t-z I'd hold off migrating until the |
Thank you for the update and suggestions @EugenMayer and @stevehipwell . We have kept the version upgrade on hold for now and will continue with it after the 5.2.0 release. Your advice on testing the upgrade in a sandbox environment and the note about database migration are greatly appreciated. We'll also explore snapshotting the deployment PV to restore it for the StatefulSet PV, as you suggested. Thanks again for your insights! |
@stevehipwell we are beginning this migration. Just to clarify, are you suggesting we snapshot the deployment PV, redeploy the Deployment at the same chart version (4.45.0 in our case) as a StatefulSet, restore to snapshot to the StatefulSet PV, then upgrade? We plan on attempting this on a test deployment first, but any additional guidance would be greatly appreciated. And thank you for providing this chart! |
@mfisch04 after further thought you might be able to scale down your current deployment and then detatch the PV from the PVC. If not creating a new PV from a snapshot would also work. You can then manually create the PVC described in the StatefulSet volume template using the PV so when you modify the chart to use a StatefulSet it picks up the PVC you've just created. |
Description
With the release of
stevehipwell/nexus3
Helm chart 5.0.0, Deployments are no longer supported, and only StatefulSets are available. This change impacts our existing setup, where we rely on a custom PVC to store Nexus data.We are seeking guidance on how to:
/nexus-data
) correctly with the new chart configuration.Could you provide recommended approaches or workarounds for this transition? If mounting existing PVCs is not supported, please suggest alternative strategies to ensure data persistence during the migration.
Version Details
Thank you for your support!
The text was updated successfully, but these errors were encountered: