The MongoDB chart required by the Nuxeo Helm Chart is indicated with a ~ to grab the bug fixes / patches.
The Nuxeo preview has persistence enabled which implies binding to some kubernetes PVC.
While rolling MongoDB updates, the new MongoDB pod gets stuck waiting for the old MongoDB to free its PVC. We suspect this to be due to the MongoDB version update leading to a new yaml file.
We can see see there are 2 MongoDB masters and the newest is not ready
getting each MongoDB master pod as yaml reveals a version difference:
To try solve this issue, we thought of using ReadWriteMany PVCs but this is not garanteed to work and not encouraged by cloud platforms.
MongoDB allows to work with statefulsets. So we'd rather try solving the rollout issue using the useStatefulSet value: