[bitnami/redis] fix sentinel deployment (#9412)

* Enable startupProbe for replica/sentinel

Fixes: https://github.com/bitnami/charts/issues/9227
Signed-off-by: jack1902 <39212456+jack1902@users.noreply.github.com>

* Update readme using readme-generator

Signed-off-by: jack1902 <39212456+jack1902@users.noreply.github.com>

* Bump redis chart for fix

Signed-off-by: jack1902 <39212456+jack1902@users.noreply.github.com>

* [bitnami/redis] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Bitnami Containers <containers@bitnami.com>
This commit is contained in:
Jack
2022-03-16 12:06:14 +01:00
committed by GitHub
co-authored by Bitnami Containers
parent 6e0d71f4af
commit d5483cd5b9
3 changed files with 35 additions and 31 deletions
+17 -16
View File
@@ -7,7 +7,7 @@ Redis(TM) is an open source, advanced key-value store. It is often referred to a
[Overview of Redis&trade;](http://redis.io)
Disclaimer: Redis is a registered trademark of Redis Labs Ltd. Any rights therein are reserved to Redis Labs Ltd. Any use by Bitnami is for referential purposes only and does not indicate any sponsorship, endorsement, or affiliation between Redis Labs Ltd.
## TL;DR
```bash
@@ -98,7 +98,7 @@ The command removes all the Kubernetes components associated with the chart and
| ------------------- | ------------------------------------------------------- | ---------------------- |
| `image.registry` | Redis&trade; image registry | `docker.io` |
| `image.repository` | Redis&trade; image repository | `bitnami/redis` |
| `image.tag` | Redis&trade; image tag (immutable tags are recommended) | `6.2.6-debian-10-r142` |
| `image.tag` | Redis&trade; image tag (immutable tags are recommended) | `6.2.6-debian-10-r146` |
| `image.pullPolicy` | Redis&trade; image pull policy | `IfNotPresent` |
| `image.pullSecrets` | Redis&trade; image pull secrets | `[]` |
| `image.debug` | Enable image debug mode | `false` |
@@ -224,11 +224,11 @@ The command removes all the Kubernetes components associated with the chart and
| `replica.externalMaster.host` | External master host to bootstrap from | `""` |
| `replica.externalMaster.port` | Port for Redis service external master host | `6379` |
| `replica.containerPorts.redis` | Container port to open on Redis&trade; replicas nodes | `6379` |
| `replica.startupProbe.enabled` | Enable startupProbe on Redis&trade; replicas nodes | `false` |
| `replica.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `20` |
| `replica.startupProbe.periodSeconds` | Period seconds for startupProbe | `5` |
| `replica.startupProbe.enabled` | Enable startupProbe on Redis&trade; replicas nodes | `true` |
| `replica.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` |
| `replica.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` |
| `replica.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `5` |
| `replica.startupProbe.failureThreshold` | Failure threshold for startupProbe | `5` |
| `replica.startupProbe.failureThreshold` | Failure threshold for startupProbe | `22` |
| `replica.startupProbe.successThreshold` | Success threshold for startupProbe | `1` |
| `replica.livenessProbe.enabled` | Enable livenessProbe on Redis&trade; replicas nodes | `true` |
| `replica.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `20` |
@@ -307,12 +307,13 @@ The command removes all the Kubernetes components associated with the chart and
| `sentinel.enabled` | Use Redis&trade; Sentinel on Redis&trade; pods. | `false` |
| `sentinel.image.registry` | Redis&trade; Sentinel image registry | `docker.io` |
| `sentinel.image.repository` | Redis&trade; Sentinel image repository | `bitnami/redis-sentinel` |
| `sentinel.image.tag` | Redis&trade; Sentinel image tag (immutable tags are recommended) | `6.2.6-debian-10-r140` |
| `sentinel.image.tag` | Redis&trade; Sentinel image tag (immutable tags are recommended) | `6.2.6-debian-10-r144` |
| `sentinel.image.pullPolicy` | Redis&trade; Sentinel image pull policy | `IfNotPresent` |
| `sentinel.image.pullSecrets` | Redis&trade; Sentinel image pull secrets | `[]` |
| `sentinel.image.debug` | Enable image debug mode | `false` |
| `sentinel.masterSet` | Master set name | `mymaster` |
| `sentinel.quorum` | Sentinel Quorum | `2` |
| `sentinel.getMasterTimeout` | Amount of time to allow before get_sentinel_master_info() times out. | `220` |
| `sentinel.automateClusterRecovery` | Automate cluster recovery in cases where the last replica is not considered a good replica and Sentinel won't automatically failover to it. | `false` |
| `sentinel.downAfterMilliseconds` | Timeout for detecting a Redis&trade; node is down | `60000` |
| `sentinel.failoverTimeout` | Timeout for performing a election failover | `18000` |
@@ -328,11 +329,11 @@ The command removes all the Kubernetes components associated with the chart and
| `sentinel.externalMaster.host` | External master host to bootstrap from | `""` |
| `sentinel.externalMaster.port` | Port for Redis service external master host | `6379` |
| `sentinel.containerPorts.sentinel` | Container port to open on Redis&trade; Sentinel nodes | `26379` |
| `sentinel.startupProbe.enabled` | Enable startupProbe on Redis&trade; Sentinel nodes | `false` |
| `sentinel.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `20` |
| `sentinel.startupProbe.periodSeconds` | Period seconds for startupProbe | `5` |
| `sentinel.startupProbe.enabled` | Enable startupProbe on Redis&trade; Sentinel nodes | `true` |
| `sentinel.startupProbe.initialDelaySeconds` | Initial delay seconds for startupProbe | `10` |
| `sentinel.startupProbe.periodSeconds` | Period seconds for startupProbe | `10` |
| `sentinel.startupProbe.timeoutSeconds` | Timeout seconds for startupProbe | `5` |
| `sentinel.startupProbe.failureThreshold` | Failure threshold for startupProbe | `5` |
| `sentinel.startupProbe.failureThreshold` | Failure threshold for startupProbe | `22` |
| `sentinel.startupProbe.successThreshold` | Success threshold for startupProbe | `1` |
| `sentinel.livenessProbe.enabled` | Enable livenessProbe on Redis&trade; Sentinel nodes | `true` |
| `sentinel.livenessProbe.initialDelaySeconds` | Initial delay seconds for livenessProbe | `20` |
@@ -349,7 +350,7 @@ The command removes all the Kubernetes components associated with the chart and
| `sentinel.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` |
| `sentinel.customLivenessProbe` | Custom livenessProbe that overrides the default one | `{}` |
| `sentinel.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` |
| `sentinel.persistence.enabled` | Enable persistence on Redis&trade; sentinel nodes using Persistent Volume Claims | `false` |
| `sentinel.persistence.enabled` | Enable persistence on Redis&trade; sentinel nodes using Persistent Volume Claims (Experimental) | `false` |
| `sentinel.persistence.storageClass` | Persistent Volume storage class | `""` |
| `sentinel.persistence.accessModes` | Persistent Volume access modes | `["ReadWriteOnce"]` |
| `sentinel.persistence.size` | Persistent Volume size | `100Mi` |
@@ -416,7 +417,7 @@ The command removes all the Kubernetes components associated with the chart and
| `metrics.enabled` | Start a sidecar prometheus exporter to expose Redis&trade; metrics | `false` |
| `metrics.image.registry` | Redis&trade; Exporter image registry | `docker.io` |
| `metrics.image.repository` | Redis&trade; Exporter image repository | `bitnami/redis-exporter` |
| `metrics.image.tag` | Redis&trade; Redis&trade; Exporter image tag (immutable tags are recommended) | `1.35.1-debian-10-r12` |
| `metrics.image.tag` | Redis&trade; Redis&trade; Exporter image tag (immutable tags are recommended) | `1.35.1-debian-10-r16` |
| `metrics.image.pullPolicy` | Redis&trade; Exporter image pull policy | `IfNotPresent` |
| `metrics.image.pullSecrets` | Redis&trade; Exporter image pull secrets | `[]` |
| `metrics.command` | Override default metrics container init command (useful when using custom images) | `[]` |
@@ -458,7 +459,7 @@ The command removes all the Kubernetes components associated with the chart and
| `volumePermissions.enabled` | Enable init container that changes the owner/group of the PV mount point to `runAsUser:fsGroup` | `false` |
| `volumePermissions.image.registry` | Bitnami Shell image registry | `docker.io` |
| `volumePermissions.image.repository` | Bitnami Shell image repository | `bitnami/bitnami-shell` |
| `volumePermissions.image.tag` | Bitnami Shell image tag (immutable tags are recommended) | `10-debian-10-r351` |
| `volumePermissions.image.tag` | Bitnami Shell image tag (immutable tags are recommended) | `10-debian-10-r355` |
| `volumePermissions.image.pullPolicy` | Bitnami Shell image pull policy | `IfNotPresent` |
| `volumePermissions.image.pullSecrets` | Bitnami Shell image pull secrets | `[]` |
| `volumePermissions.resources.limits` | The resources limits for the init container | `{}` |
@@ -467,7 +468,7 @@ The command removes all the Kubernetes components associated with the chart and
| `sysctl.enabled` | Enable init container to modify Kernel settings | `false` |
| `sysctl.image.registry` | Bitnami Shell image registry | `docker.io` |
| `sysctl.image.repository` | Bitnami Shell image repository | `bitnami/bitnami-shell` |
| `sysctl.image.tag` | Bitnami Shell image tag (immutable tags are recommended) | `10-debian-10-r351` |
| `sysctl.image.tag` | Bitnami Shell image tag (immutable tags are recommended) | `10-debian-10-r355` |
| `sysctl.image.pullPolicy` | Bitnami Shell image pull policy | `IfNotPresent` |
| `sysctl.image.pullSecrets` | Bitnami Shell image pull secrets | `[]` |
| `sysctl.command` | Override default init-sysctl container command (useful when using custom images) | `[]` |
@@ -861,4 +862,4 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
@@ -86,9 +86,9 @@ data:
get_sentinel_master_info() {
if is_boolean_yes "$REDIS_SENTINEL_TLS_ENABLED"; then
sentinel_info_command="{{- if and .Values.auth.enabled .Values.auth.sentinel }}REDISCLI_AUTH="\$REDIS_PASSWORD" {{ end }}redis-cli -h $REDIS_SERVICE -p $SENTINEL_SERVICE_PORT --tls --cert ${REDIS_SENTINEL_TLS_CERT_FILE} --key ${REDIS_SENTINEL_TLS_KEY_FILE} --cacert ${REDIS_SENTINEL_TLS_CA_FILE} sentinel get-master-addr-by-name {{ .Values.sentinel.masterSet }}"
sentinel_info_command="{{- if and .Values.auth.enabled .Values.auth.sentinel }}REDISCLI_AUTH="\$REDIS_PASSWORD" {{ end }}timeout {{ .Values.sentinel.getMasterTimeout }} redis-cli -h $REDIS_SERVICE -p $SENTINEL_SERVICE_PORT --tls --cert ${REDIS_SENTINEL_TLS_CERT_FILE} --key ${REDIS_SENTINEL_TLS_KEY_FILE} --cacert ${REDIS_SENTINEL_TLS_CA_FILE} sentinel get-master-addr-by-name {{ .Values.sentinel.masterSet }}"
else
sentinel_info_command="{{- if and .Values.auth.enabled .Values.auth.sentinel }}REDISCLI_AUTH="\$REDIS_PASSWORD" {{ end }}redis-cli -h $REDIS_SERVICE -p $SENTINEL_SERVICE_PORT sentinel get-master-addr-by-name {{ .Values.sentinel.masterSet }}"
sentinel_info_command="{{- if and .Values.auth.enabled .Values.auth.sentinel }}REDISCLI_AUTH="\$REDIS_PASSWORD" {{ end }}timeout {{ .Values.sentinel.getMasterTimeout }} redis-cli -h $REDIS_SERVICE -p $SENTINEL_SERVICE_PORT sentinel get-master-addr-by-name {{ .Values.sentinel.masterSet }}"
fi
info "about to run the command: $sentinel_info_command"
+16 -13
View File
@@ -75,7 +75,7 @@ diagnosticMode:
image:
registry: docker.io
repository: bitnami/redis
tag: 6.2.6-debian-10-r146
tag: 6.2.6-debian-10-r158
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: https://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -541,12 +541,12 @@ replica:
## @param replica.startupProbe.successThreshold Success threshold for startupProbe
##
startupProbe:
enabled: false
initialDelaySeconds: 20
periodSeconds: 5
enabled: true
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
failureThreshold: 22
## @param replica.livenessProbe.enabled Enable livenessProbe on Redis&trade; replicas nodes
## @param replica.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
## @param replica.livenessProbe.periodSeconds Period seconds for livenessProbe
@@ -857,7 +857,7 @@ sentinel:
image:
registry: docker.io
repository: bitnami/redis-sentinel
tag: 6.2.6-debian-10-r144
tag: 6.2.6-debian-10-r156
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
## ref: https://kubernetes.io/docs/user-guide/images/#pre-pulling-images
@@ -880,6 +880,9 @@ sentinel:
## @param sentinel.quorum Sentinel Quorum
##
quorum: 2
## @param sentinel.getMasterTimeout Amount of time to allow before get_sentinel_master_info() times out.
## NOTE: This is directly related to the startupProbes which are configured to run every 10 seconds for a total of 22 failures. If adjusting this value, also adjust the startupProbes.
getMasterTimeout: 220
## @param sentinel.automateClusterRecovery Automate cluster recovery in cases where the last replica is not considered a good replica and Sentinel won't automatically failover to it.
## This also prevents any new replica from starting until the last remaining replica is elected as master to guarantee that it is the one to be elected by Sentinel, and not a newly started replica with no data.
## NOTE: This feature requires a "downAfterMilliseconds" value less or equal to 2000.
@@ -942,12 +945,12 @@ sentinel:
## @param sentinel.startupProbe.successThreshold Success threshold for startupProbe
##
startupProbe:
enabled: false
initialDelaySeconds: 20
periodSeconds: 5
enabled: true
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
failureThreshold: 22
## @param sentinel.livenessProbe.enabled Enable livenessProbe on Redis&trade; Sentinel nodes
## @param sentinel.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
## @param sentinel.livenessProbe.periodSeconds Period seconds for livenessProbe
@@ -1255,7 +1258,7 @@ metrics:
image:
registry: docker.io
repository: bitnami/redis-exporter
tag: 1.35.1-debian-10-r16
tag: 1.36.0-debian-10-r5
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
@@ -1441,7 +1444,7 @@ volumePermissions:
image:
registry: docker.io
repository: bitnami/bitnami-shell
tag: 10-debian-10-r355
tag: 10-debian-10-r367
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.
@@ -1487,7 +1490,7 @@ sysctl:
image:
registry: docker.io
repository: bitnami/bitnami-shell
tag: 10-debian-10-r355
tag: 10-debian-10-r367
pullPolicy: IfNotPresent
## Optionally specify an array of imagePullSecrets.
## Secrets must be manually created in the namespace.