Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I had no idea... probably shows I haven't hit an advanced enough use case.

> why isn't a statefulset just a deployment/pod with PVC mounted?

* StatefulSets provide predictable pod names and hostnames (pod-0, pod-1)

* StatefulSets handle pods sequentially (0→1→2), ensuring proper cluster initialization.

* StatefulSets maintain a consistent pod-to-PVC mapping even after pod rescheduling.

* StatefulSets delete pods in reverse order,



You can look at the structure in TFA to see this. The only discussion of the volume mounting is in the pod template, not the Stateful Set itself.


You can map a PVC back to a pod without statefulset. You just need to create the PV and PVC and map it to a deployment.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: