You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RollingUpdate strategy does not seem to work with leader election #419
RollingUpdate strategy does not seem to work with the default enabled leader election. The old instance keeps the lease claimed, and the new instance has a failing readiness probe until it can claim the lease. This was discovered while testing the helm chart pull request, but I believe the same should be happening with the kustomize install since it also uses rolling update strategy by default.
This is what I observe when triggering a rollout restart operation:
The readiness probe is unhealthy until the new pod gets the lease:
Because the readiness probe of the new pod doesn't become ready until it can get the lease, there aren't sufficient ready pods and kubernetes doesn't send the shutdown signal to the old leader. Because the old leader doesn't get a shutdown signal, it has no reason to drop the lease claim.
This seems like a bug in plugin-barman-cloud leader election, but means that rolling update currently doesn't properly work as a default. Leader election does work in the cloudnative-pg operator, so something in the leader election works differently in the barman cloud plugin
Activity
jstewart612 commentedon Aug 16, 2025
I just hit this exact issue. I'm looking for alternative options for the health check but not finding any.
fix: set LeaderElectionReleaseOnCancel to true to enable RollingUpdat…
chore(deps): update dependency https://github.com/cloudnative-pg/plug…
feat(container)!: Update image ghcr.io/cloudnative-pg/charts/plugin-b…
feat(container)!: Update image ghcr.io/cloudnative-pg/charts/plugin-b…
feat(container)!: Update image ghcr.io/cloudnative-pg/charts/plugin-b…