rivernews / iriversland2-kubernetes

Terraform provisioning K8 infra for iriversland2, my personal website, as well as other projects.
0 stars 1 forks source link

Deployment that uses PVC should change to StatefulSet instead #50

Open rivernews opened 3 years ago

rivernews commented 3 years ago

Recommenced by this SO post saying that we should do so.

Deployment's PVC has many limitation, like only able to tie to one specific node, etc. Given the k8s scaling nature, this is problematic, and we could easily lose data.

Explore StatefulSet for what it offers.