Skip to content
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

feat: Change the update strategy in case of persistence #876

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

alineIntersec
Copy link
Contributor

In case planka is installed with a PV associated to the planka pod, to persist attachments and avatars for example, the default update strategy for the deployment will fail. The default "rolling update" strategy would indeed try to start a new pod before stopping the old one. But as the PV is attached to the old pod, the new pod will fail to attach and so will stay in "container creating" mode, and the old pod will never be stopped.

To avoid that, adding a condition on the deployment to use the "recreate" update strategy if the persistence is enabled. This will ensure the old pod is stopped and so the PV is detached before trying to attach the new one.

In case planka is installed with a PV associated to the planka pod, to
persist attachments and avatars for example, the default update strategy
for the deployment will fail. The default "rolling update" strategy
would indeed try to start a new pod before stopping the old one. But as
the old pod is attached to the PV, the new pod will fail to attach and
so will stay in "container creating" mode, and the old pod will never be
stopped.

To avoid that, adding a condition on the deployment to use the
"recreate" update strategy if the persistence is enabled. This will
ensure the old pod is stopped and so detached from the PV before trying
to attach the new one.
@CLAassistant
Copy link

CLAassistant commented Sep 13, 2024

CLA assistant check
All committers have signed the CLA.

@meltyshev meltyshev merged commit f9a7b38 into plankanban:master Sep 13, 2024
1 check passed
@meltyshev
Copy link
Member

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants