mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
[bitnami/redis] Add minReadySeconds configuration (#13596)
As minReadySeconds is a recent addition to Statefulset (graduated to beta in Kubernetes 1.23), add the field conditionally, i.e. only if the value is not zero. Signed-off-by: Simon Baatz <gmbnomis@gmail.com> Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
This commit is contained in:
@@ -22,4 +22,4 @@ maintainers:
|
||||
name: redis
|
||||
sources:
|
||||
- https://github.com/bitnami/containers/tree/main/bitnami/redis
|
||||
version: 17.3.11
|
||||
version: 17.3.12
|
||||
|
||||
@@ -166,6 +166,7 @@ The command removes all the Kubernetes components associated with the chart and
|
||||
| `master.kind` | Use either Deployment or StatefulSet (default) | `StatefulSet` |
|
||||
| `master.schedulerName` | Alternate scheduler for Redis® master pods | `""` |
|
||||
| `master.updateStrategy.type` | Redis® master statefulset strategy type | `RollingUpdate` |
|
||||
| `master.minReadySeconds` | How many seconds a pod needs to be ready before killing the next, during update | `0` |
|
||||
| `master.priorityClassName` | Redis® master pods' priorityClassName | `""` |
|
||||
| `master.hostAliases` | Redis® master pods host aliases | `[]` |
|
||||
| `master.podLabels` | Extra labels for Redis® master pods | `{}` |
|
||||
@@ -266,6 +267,7 @@ The command removes all the Kubernetes components associated with the chart and
|
||||
| `replica.containerSecurityContext.runAsUser` | Set Redis® replicas containers' Security Context runAsUser | `1001` |
|
||||
| `replica.schedulerName` | Alternate scheduler for Redis® replicas pods | `""` |
|
||||
| `replica.updateStrategy.type` | Redis® replicas statefulset strategy type | `RollingUpdate` |
|
||||
| `replica.minReadySeconds` | How many seconds a pod needs to be ready before killing the next, during update | `0` |
|
||||
| `replica.priorityClassName` | Redis® replicas pods' priorityClassName | `""` |
|
||||
| `replica.podManagementPolicy` | podManagementPolicy to manage scaling operation of %%MAIN_CONTAINER_NAME%% pods | `""` |
|
||||
| `replica.hostAliases` | Redis® replicas pods host aliases | `[]` |
|
||||
|
||||
@@ -26,6 +26,9 @@ spec:
|
||||
{{- else }}
|
||||
updateStrategy: {{- toYaml .Values.master.updateStrategy | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if .Values.master.minReadySeconds }}
|
||||
minReadySeconds: {{ .Values.master.minReadySeconds }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
template:
|
||||
metadata:
|
||||
|
||||
@@ -23,6 +23,9 @@ spec:
|
||||
{{- if .Values.replica.updateStrategy }}
|
||||
updateStrategy: {{- toYaml .Values.replica.updateStrategy | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if .Values.replica.minReadySeconds }}
|
||||
minReadySeconds: {{ .Values.replica.minReadySeconds }}
|
||||
{{- end }}
|
||||
{{- if .Values.replica.podManagementPolicy }}
|
||||
podManagementPolicy: {{ .Values.replica.podManagementPolicy | quote }}
|
||||
{{- end }}
|
||||
|
||||
@@ -22,6 +22,9 @@ spec:
|
||||
{{- if .Values.replica.updateStrategy }}
|
||||
updateStrategy: {{- toYaml .Values.replica.updateStrategy | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- if .Values.replica.minReadySeconds }}
|
||||
minReadySeconds: {{ .Values.replica.minReadySeconds }}
|
||||
{{- end }}
|
||||
{{- if .Values.replica.podManagementPolicy }}
|
||||
podManagementPolicy: {{ .Values.replica.podManagementPolicy | quote }}
|
||||
{{- end }}
|
||||
|
||||
@@ -289,6 +289,9 @@ master:
|
||||
##
|
||||
type: RollingUpdate
|
||||
rollingUpdate: {}
|
||||
## @param master.minReadySeconds How many seconds a pod needs to be ready before killing the next, during update
|
||||
##
|
||||
minReadySeconds: 0
|
||||
## @param master.priorityClassName Redis® master pods' priorityClassName
|
||||
##
|
||||
priorityClassName: ""
|
||||
@@ -687,6 +690,9 @@ replica:
|
||||
##
|
||||
type: RollingUpdate
|
||||
rollingUpdate: {}
|
||||
## @param replica.minReadySeconds How many seconds a pod needs to be ready before killing the next, during update
|
||||
##
|
||||
minReadySeconds: 0
|
||||
## @param replica.priorityClassName Redis® replicas pods' priorityClassName
|
||||
##
|
||||
priorityClassName: ""
|
||||
|
||||
Reference in New Issue
Block a user