[bitnami/mediawiki] Add support for N replicas (#20064)

This commit is contained in:
Juan Ariza Toledano
2023-10-16 16:07:23 +02:00
committed by GitHub
parent 6d3450c901
commit c8ba0c6da1
4 changed files with 7 additions and 1 deletions

View File

@@ -39,4 +39,4 @@ maintainers:
name: mediawiki
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/mediawiki
version: 17.0.0
version: 17.1.0

View File

@@ -110,6 +110,7 @@ The command removes all the Kubernetes components associated with the chart and
| Name | Description | Value |
| --------------------------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------------- |
| `replicaCount` | Number of Mediawiki replicas to deploy | `1` |
| `updateStrategy.type` | StrategyType can be set to RollingUpdate or OnDelete | `RollingUpdate` |
| `podSecurityContext.enabled` | Enable Mediawiki pods' Security Context | `true` |
| `podSecurityContext.fsGroup` | Group ID for the volumes of the pod | `1001` |

View File

@@ -14,6 +14,7 @@ metadata:
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
{{- $podLabels := include "common.tplvalues.merge" ( dict "values" ( list .Values.podLabels .Values.commonLabels ) "context" . ) }}
selector:
matchLabels: {{- include "common.labels.matchLabels" ( dict "customLabels" $podLabels "context" $ ) | nindent 6 }}

View File

@@ -152,6 +152,10 @@ extraEnvVarsSecret: ""
## @section Mediawiki deployment parameters
## @param replicaCount Number of Mediawiki replicas to deploy
## NOTE: ReadWriteMany PVC(s) are required if replicaCount > 1
##
replicaCount: 1
## Strategy to use to update Pods
## @param updateStrategy.type StrategyType can be set to RollingUpdate or OnDelete
##