From 8d22894b82f82ab4f93067d1c413f3b40fc8a40f Mon Sep 17 00:00:00 2001 From: Harald Aamot Date: Thu, 11 Jan 2024 11:19:06 +0100 Subject: [PATCH 1/2] CLUSTER_NO_TLS_VALIDATION in docker - Update entrypoint.sh This allows to inject the CLUSTER_NO_TLS_VALIDATION for redis clusters in AWS as environment variable --- docker/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index e13ec60a..44065ac2 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -334,6 +334,10 @@ if [ -n "$IS_CLUSTER" ] && parse_boolean "$IS_CLUSTER"; then set -- "$@" "--is-cluster" fi +if [ -n "$CLUSTER_NO_TLS_VALIDATION" ] && parse_boolean "$CLUSTER_NO_TLS_VALIDATION"; then + set -- "$@" "--cluster-no-tls-validation" +fi + if [ -n "$REPLACE_CONFIG_ENV" ]; then # special case for more complex docker setup with multiple connections # to unix sockets, sentinels and normal redis server not configurable From 8db59146fbda8765b06dd50abb8becaf1cde716f Mon Sep 17 00:00:00 2001 From: Harald Aamot Date: Thu, 11 Jan 2024 11:24:19 +0100 Subject: [PATCH 2/2] Update README.md adding DOCKER cluster env vars to docu --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index f9d254c4..c76d1fb7 100644 --- a/README.md +++ b/README.md @@ -219,6 +219,9 @@ SENTINEL_TLS_KEY_FILE SENTINEL_TLS_SERVER_NAME SENTINELS K8S_SIGTERM +CLUSTERS +IS_CLUSTER +CLUSTER_NO_TLS_VALIDATION ``` A (partial) description for the mapping onto the cli params and into the config files can be found at the [docs/connections.md](docs/connections.md) file.