Skip to content

[Feature]: Statefulset vs Deployment #136

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

Open
Munsio opened this issue Mar 30, 2025 · 0 comments
Open

[Feature]: Statefulset vs Deployment #136

Munsio opened this issue Mar 30, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Munsio
Copy link
Contributor

Munsio commented Mar 30, 2025

Feature Description

Usually in Kubernetes deployments are used to deploy stateless applications, if an PVC is involved it has to be an "ReadWriteMany" one so all deployments can access it.

This is especially needed with the default "RollingUpdate" strategy of an deployment.

In case of the deployments within this Repo they are all defined with a config PVC which is explicitly set to "ReadWriteOnce" so only 1 pod is able to access the PVC at any given time.

The problem that I am facing a few versions since now is that when trying to deploy a new version the Pods won't start because of an "Multi-Attach" error on the config PVC.

A workaround would be to set the "Strategy" to "Recreate" instead of "RollingUpdate" but then per definition it would be better to use a Stateful set anyway.

I want to have your Input on this topic. As a first workaround we could switch to "Recreate" so updating is without any pain but I guess the end goal would be to switch to a Stateful set anyway as the applications the Charts are for are designed to be stateful itself.

@Munsio Munsio added the enhancement New feature or request label Mar 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant