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

Edit RollingUpdate strategy for nfs-deployment #14

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

sgibson91
Copy link
Member

When making some changes, I ended up stuck mid-deployment with a Multi-Attach error on the PV/PVC. Because the volume has ReadWriteOnce access mode, it cannot be attached to more than resource simultaneously, and the update strategy was trying to bring up a new pod before taking down the old. Causing the Multi-Attach error and stalemate.

By setting maxSurge and maxUnavailable to one (instead of the default 25%), we permit one more replica than defined, and one replica is permitted to be unavailable during upgrade. This permits the terminating pod to release the volume for the creating pod to bind to.

See 2i2c-org/infrastructure#5487 for details.

@sgibson91 sgibson91 merged commit fde883a into 2i2c-org:main Feb 6, 2025
1 check passed
@sgibson91 sgibson91 deleted the rolling-update-strategy branch February 6, 2025 10:31
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.

1 participant