Skip to content

Commit

Permalink
fix: cluster-announce-hostname only support in redis 7 (#69)
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <[email protected]>
  • Loading branch information
drivebyer authored Jan 18, 2024
1 parent 4163e0d commit 0b2efdc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ start_redis() {

if [[ "${REDIS_MAJOR_VERSION}" != "v7" ]]; then
exec redis-server /etc/redis/redis.conf \
--cluster-announce-ip "${CLUSTER_ANNOUNCE_IP}" \
--cluster-announce-hostname "${POD_HOSTNAME}"
--cluster-announce-ip "${CLUSTER_ANNOUNCE_IP}"
else
{
echo cluster-announce-ip "${CLUSTER_ANNOUNCE_IP}"
Expand Down

0 comments on commit 0b2efdc

Please sign in to comment.