From bbf31e281f2da8eec68d6455cbd2755ef7f76ac0 Mon Sep 17 00:00:00 2001 From: groundhog2k <10630407+groundhog2k@users.noreply.github.com> Date: Sat, 12 Dec 2020 16:36:34 +0100 Subject: [PATCH] Set update strategy to RollingUpdate instead of Recreate to prevent update collision (#127) --- charts/nextcloud/Chart.yaml | 2 +- charts/nextcloud/README.md | 2 +- charts/nextcloud/templates/deployment.yaml | 2 +- charts/nextcloud/templates/scripts.yaml | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml index 40cf3c18..700ea856 100644 --- a/charts/nextcloud/Chart.yaml +++ b/charts/nextcloud/Chart.yaml @@ -8,7 +8,7 @@ maintainers: - name: groundhog2k # This is the chart version. -version: 0.3.0 +version: 0.3.1 # This is the version number of the application being deployed. appVersion: "20.0.3-apache" diff --git a/charts/nextcloud/README.md b/charts/nextcloud/README.md index 14a5056d..6bd6a834 100644 --- a/charts/nextcloud/README.md +++ b/charts/nextcloud/README.md @@ -1,6 +1,6 @@ # Nextcloud -   +   A Helm chart for Nextcloud on Kubernetes diff --git a/charts/nextcloud/templates/deployment.yaml b/charts/nextcloud/templates/deployment.yaml index 4684dd92..e5149333 100644 --- a/charts/nextcloud/templates/deployment.yaml +++ b/charts/nextcloud/templates/deployment.yaml @@ -7,7 +7,7 @@ metadata: spec: replicas: {{ .Values.replicas }} strategy: - type: Recreate + type: RollingUpdate selector: matchLabels: {{- include "nextcloud.selectorLabels" . | nindent 6 }} diff --git a/charts/nextcloud/templates/scripts.yaml b/charts/nextcloud/templates/scripts.yaml index 748aec90..0cfa7bac 100644 --- a/charts/nextcloud/templates/scripts.yaml +++ b/charts/nextcloud/templates/scripts.yaml @@ -10,4 +10,5 @@ data: sleep {{ .Values.settings.databaseUpdateDelay }} php -f /var/www/html/occ db:add-missing-indices php -f /var/www/html/occ db:add-missing-columns + php -f /var/www/html/occ db:add-missing-primary-keys php -f /var/www/html/occ db:convert-filecache-bigint -- GitLab