From 754181c6e185602e368a6466f0d1eb789dc1a16c Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Mon, 2 Oct 2023 16:47:07 +0530 Subject: [PATCH] fix Signed-off-by: Shubham Gupta --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 0d33884..6d3915e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -107,7 +107,8 @@ start_redis() { if [[ "${SETUP_MODE}" == "cluster" ]]; then echo "Starting redis service in cluster mode....." if [[ "${NODEPORT}" == "true" ]]; then - CLUSTER_ANNOUNCE_IP="${!node-ip-$(hostname)}" + CLUSTER_ANNOUNCE_IP_VAR = "node_ip_$(hostname | tr '-' '_')" + CLUSTER_ANNOUNCE_IP="${!CLUSTER_ANNOUNCE_IP_VAR}" else CLUSTER_ANNOUNCE_IP="${POD_IP}" fi