From c649b14f4f387be792969d0d83c8b471902ecf90 Mon Sep 17 00:00:00 2001 From: Ryan LaMarche Date: Sat, 17 Jan 2026 13:06:24 -0500 Subject: [PATCH] add helm values for deployment rollout strategy --- dev/helm/README.md | 3 +++ dev/helm/templates/deployment.yaml | 7 +++++++ dev/helm/values.yaml | 6 ++++++ 3 files changed, 16 insertions(+) diff --git a/dev/helm/README.md b/dev/helm/README.md index c1b73e22..75681afc 100644 --- a/dev/helm/README.md +++ b/dev/helm/README.md @@ -99,6 +99,9 @@ The following table lists the configurable parameters of the Wiki.js chart and t | `imagePullPolicy` | Image pull policy | `IfNotPresent` | | `replicacount` | Number of Wiki.js pods to run | `1` | | `revisionHistoryLimit` | Total number of revision history points | `10` | +| `strategy.type` | Strategy used to replace old pods by new ones | `RollingUpdate` | +| `strategy.rollingUpdate.maxSurge` | Maximum number of pods that can be created over the desired replica count during the upgrade process | `25%` | +| `strategy.rollingUpdate.maxUnavailable` | Maximum number of pods that can be unavailable during the upgrade process | `25%` | | `resources.limits` | Wiki.js service resource limits | `nil` | | `resources.requests` | Wiki.js service resource requests | `nil` | | `nodeSelector` | Node labels for the Wiki.js pod assignment | `{}` | diff --git a/dev/helm/templates/deployment.yaml b/dev/helm/templates/deployment.yaml index e4d1d197..f137bcf1 100644 --- a/dev/helm/templates/deployment.yaml +++ b/dev/helm/templates/deployment.yaml @@ -7,6 +7,13 @@ metadata: spec: replicas: {{ .Values.replicaCount }} revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} + strategy: + type: {{ .Values.strategy.type }} + {{- if eq .Values.strategy.type "RollingUpdate" }} + rollingUpdate: + maxSurge: {{ .Values.strategy.rollingUpdate.maxSurge }} + maxUnavailable: {{ .Values.strategy.rollingUpdate.maxUnavailable }} + {{- end }} selector: matchLabels: {{- include "wiki.selectorLabels" . | nindent 6 }} diff --git a/dev/helm/values.yaml b/dev/helm/values.yaml index db5496c0..c067bfe8 100644 --- a/dev/helm/values.yaml +++ b/dev/helm/values.yaml @@ -5,6 +5,12 @@ replicaCount: 1 revisionHistoryLimit: 10 +strategy: + type: "RollingUpdate" + rollingUpdate: + maxSurge: "25%" + maxUnavailable: "25%" + image: repository: requarks/wiki imagePullPolicy: IfNotPresent