Replies: 1 comment
|
A PVC does not imply that the workload must be a StatefulSet. The controller choice is about pod identity and lifecycle, while persistence is supplied independently through volumes. The Nextcloud web/PHP pod normally does not need StatefulSet guarantees:
That makes a Deployment the simpler controller. The chart explicitly renders For multiple application replicas, a StatefulSet would not solve shared-file access by itself. Each The bundled database/Redis dependencies may themselves use StatefulSets because their replicas do need stable storage identity. That does not make the stateless application controller a StatefulSet. So Deployment + PVC is intentional here; use a StatefulSet only if you introduce a real per-pod identity/storage requirement, not merely because the application persists data. If this answers the design choice, please mark it as accepted. |
Uh oh!
There was an error while loading. Please reload this page.
I've noticed that Nextcloud uses Deployment even though it is capable of managing persistent data.
Deployment is generally used for stateless applications, while StatefulSet is specifically designed for stateful applications.
Any reason to design it like that ?
It seems to me that it would make sense for Nextcloud to be a StatefulSet, at least when it uses a PVC.
All reactions