groundhog2k / helm-charts

Helm charts for open source applications - ready to use for deployment on Kubernetes
MIT License
69 stars 56 forks source link

Fix default update strategy when using Deployment instead of StatefulSet #1220

Closed groundhog2k closed 1 year ago

groundhog2k commented 1 year ago

When stateful workloads are deployed using Deployment template instead of StatefulSet the default update strategy should not be RollingUpdate. In case of a database (f.e. MariaDB) the files are still in use and locked. In case of Redis the latest changes are note written to PVC. Recreate strategy makes sure that all open files are closed and changes are written to storage before pod gets replaced.

fyi: @tim-hanssen