Enable option to specify a different strategy than recreate (#22387)

Signed-off-by: Igor Valente Blackman <igor.blackman@gmail.com>
This commit is contained in:
Igor Blackman
2020-05-13 14:40:22 -07:00
committed by GitHub
parent 217e4a9972
commit bb716dfaca
4 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: nextcloud
version: 1.10.0
version: 1.10.1
appVersion: 17.0.0
description: A file sharing server that puts the control and security of your own data back into your hands.
keywords:
+1
View File
@@ -81,6 +81,7 @@ The following table lists the configurable parameters of the nextcloud chart and
| `nextcloud.defaultConfigs.\.apps\.config\.php` | Default configuration for apps | `true` |
| `nextcloud.defaultConfigs.\.autoconfig\.php` | Default auto-configuration for databases | `true` |
| `nextcloud.defaultConfigs.\.smtp\.config\.php` | Default configuration for smtp | `true` |
| `nextcloud.strategy` | specifies the strategy used to replace old Pods by new ones | `type: Recreate` |
| `nextcloud.extraEnv` | specify additional environment variables | `{}` |
| `nextcloud.extraVolumes` | specify additional volumes for the NextCloud pod | `{}` |
| `nextcloud.extraVolumeMounts` | specify additional volume mounts for the NextCloud pod | `{}` |
+1 -1
View File
@@ -14,7 +14,7 @@ metadata:
spec:
replicas: {{ .Values.replicaCount }}
strategy:
type: Recreate
{{ toYaml .Values.nextcloud.strategy | indent 4 }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "nextcloud.name" . }}
+10
View File
@@ -125,6 +125,16 @@ nextcloud:
# )
# );
## Strategy used to replace old pods
## IMPORTANT: use with care, it is suggested to leave as that for upgrade purposes
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy
strategy:
type: Recreate
# type: RollingUpdate
# rollingUpdate:
# maxSurge: 1
# maxUnavailable: 0
##
## Extra environment variables
extraEnv: