d15b91a0c7
This PR contains the following updates: | Package | Update | Change | |---|---|---| | docker.io/bitnamisecure/redis | digest | `6705bb7` -> `9a5f342` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. Add the preset `:preserveSemverRanges` to your config if you don't want to pin your dependencies. --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS44Mi4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjgyLjEwIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImF1dG9tZXJnZSIsInJlbm92YXRlL2NvbnRhaW5lciIsInR5cGUvZGlnZXN0Il19-->
155 lines
4.6 KiB
YAML
155 lines
4.6 KiB
YAML
image:
|
|
repository: docker.io/bitnamisecure/redis
|
|
pullPolicy: IfNotPresent
|
|
tag: latest@sha256:9a5f3428a3bfcd97eb8647af7f4d0e4c6179f6f9decbd13ed66df832a72233f5
|
|
|
|
workload:
|
|
main:
|
|
replicas: 1
|
|
type: StatefulSet
|
|
strategy: RollingUpdate
|
|
podSpec:
|
|
containers:
|
|
main:
|
|
env:
|
|
REDIS_REPLICATION_MODE: master
|
|
ALLOW_EMPTY_PASSWORD: "yes"
|
|
REDIS_PORT: "{{ .Values.service.main.ports.main.targetPort }}"
|
|
REDIS_PASSWORD: "{{ .Values.password }}"
|
|
probes:
|
|
liveness:
|
|
enabled: true
|
|
type: exec
|
|
command:
|
|
- sh
|
|
- -c
|
|
- /health/ping_liveness_local.sh 2
|
|
readiness:
|
|
enabled: true
|
|
type: exec
|
|
command:
|
|
- sh
|
|
- -c
|
|
- /health/ping_readiness_local.sh 2
|
|
# -- Startup probe configuration
|
|
# @default -- See below
|
|
startup:
|
|
# -- Enable the startup probe
|
|
enabled: true
|
|
type: exec
|
|
command:
|
|
- sh
|
|
- -c
|
|
- /health/ping_readiness_local.sh 2
|
|
securityContext:
|
|
container:
|
|
readOnlyRootFilesystem: false
|
|
runAsGroup: 0
|
|
configmap:
|
|
health:
|
|
enabled: true
|
|
data:
|
|
ping_readiness_local.sh: |-
|
|
#!/bin/bash
|
|
[[ -n "$REDIS_PASSWORD" ]] && export REDISCLI_AUTH="$REDIS_PASSWORD"
|
|
response=$(
|
|
timeout -s 3 $1 \
|
|
redis-cli \
|
|
-h localhost \
|
|
-p $REDIS_PORT \
|
|
ping
|
|
)
|
|
if [ "$response" != "PONG" ]; then
|
|
echo "failed to connect using password: $REDIS_PASSWORD response: $response"
|
|
exit 1
|
|
fi
|
|
ping_liveness_local.sh: |-
|
|
#!/bin/bash
|
|
[[ -n "$REDIS_PASSWORD" ]] && export REDISCLI_AUTH="$REDIS_PASSWORD"
|
|
response=$(
|
|
timeout -s 3 $1 \
|
|
redis-cli \
|
|
-h localhost \
|
|
-p $REDIS_PORT \
|
|
ping
|
|
)
|
|
if [ "$response" != "PONG" ] && [ "$response" != "LOADING Redis is loading the dataset in memory" ]; then
|
|
echo "$response"
|
|
exit 1
|
|
fi
|
|
ping_readiness_master.sh: |-
|
|
#!/bin/bash
|
|
[[ -n "$REDIS_MASTER_PASSWORD" ]] && export REDISCLI_AUTH="$REDIS_MASTER_PASSWORD"
|
|
response=$(
|
|
timeout -s 3 $1 \
|
|
redis-cli \
|
|
-h $REDIS_MASTER_HOST \
|
|
-p $REDIS_MASTER_PORT_NUMBER \
|
|
ping
|
|
)
|
|
if [ "$response" != "PONG" ]; then
|
|
echo "$response"
|
|
exit 1
|
|
fi
|
|
ping_liveness_master.sh: |-
|
|
#!/bin/bash
|
|
[[ -n "$REDIS_MASTER_PASSWORD" ]] && export REDISCLI_AUTH="$REDIS_MASTER_PASSWORD"
|
|
response=$(
|
|
timeout -s 3 $1 \
|
|
redis-cli \
|
|
-h $REDIS_MASTER_HOST \
|
|
-p $REDIS_MASTER_PORT_NUMBER \
|
|
ping
|
|
)
|
|
if [ "$response" != "PONG" ] && [ "$response" != "LOADING Redis is loading the dataset in memory" ]; then
|
|
echo "$response"
|
|
exit 1
|
|
fi
|
|
ping_readiness_local_and_master.sh: |-
|
|
script_dir="$(dirname "$0")"
|
|
exit_status=0
|
|
"$script_dir/ping_readiness_local.sh" $1 || exit_status=$?
|
|
"$script_dir/ping_readiness_master.sh" $1 || exit_status=$?
|
|
exit $exit_status
|
|
ping_liveness_local_and_master.sh: |-
|
|
script_dir="$(dirname "$0")"
|
|
exit_status=0
|
|
"$script_dir/ping_liveness_local.sh" $1 || exit_status=$?
|
|
"$script_dir/ping_liveness_master.sh" $1 || exit_status=$?
|
|
exit $exit_status
|
|
|
|
## DEVNOTE: This password needs to match the one set in Common if ever changing defaults
|
|
password: "PLACEHOLDERPASSWORD"
|
|
service:
|
|
main:
|
|
ports:
|
|
main:
|
|
port: 6379
|
|
targetPort: 6379
|
|
volumeClaimTemplates:
|
|
data:
|
|
enabled: true
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
mountPath: "/bitnami/redis"
|
|
persistence:
|
|
redis-health:
|
|
enabled: true
|
|
type: configmap
|
|
objectName: health
|
|
mountPath: "/health"
|
|
defaultMode: "0755"
|
|
items:
|
|
- key: ping_readiness_local.sh
|
|
path: ping_readiness_local.sh
|
|
- key: ping_liveness_local.sh
|
|
path: ping_liveness_local.sh
|
|
- key: ping_readiness_master.sh
|
|
path: ping_readiness_master.sh
|
|
- key: ping_liveness_master.sh
|
|
path: ping_liveness_master.sh
|
|
- key: ping_liveness_local_and_master.sh
|
|
path: ping_liveness_local_and_master.sh
|
|
- key: ping_readiness_local_and_master.sh
|
|
path: ping_readiness_local_and_master.sh
|