This repository was archived by the owner on Jun 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -36,15 +36,17 @@ spec:
3636 - containerPort : 6379
3737 name : redis
3838 readinessProbe :
39- initialDelaySeconds : 5
39+ initialDelaySeconds : 10
40+ timeoutSeconds : 5
4041 exec :
4142 command :
4243 - /bin/sh
4344 - -c
4445 - |
4546 #!/bin/bash
46- if [ -f /etc/redis/redis.conf ]; then
47- export REDISCLI_AUTH=$(grep -h "requirepass" /etc/redis/redis.conf | cut -d ' ' -f 2)
47+ PASS_CHECK=$(grep -h "requirepass" /etc/redis/redis.conf | cut -d ' ' -f 2)
48+ if [ ! -z "$PASS_CHECK" ]; then
49+ export REDISCLI_AUTH="$PASS_CHECK"
4850 fi
4951 response=$(
5052 redis-cli ping
Original file line number Diff line number Diff line change @@ -35,15 +35,17 @@ spec:
3535 - containerPort : 6379
3636 name : redis
3737 readinessProbe :
38- initialDelaySeconds : 5
38+ initialDelaySeconds : 10
39+ timeoutSeconds : 5
3940 exec :
4041 command :
4142 - /bin/sh
4243 - -c
4344 - |
4445 #!/bin/bash
45- if [ -f /etc/redis/redis.conf ]; then
46- export REDISCLI_AUTH=$(grep -h "requirepass" /etc/redis/redis.conf | cut -d ' ' -f 2)
46+ PASS_CHECK=$(grep -h "requirepass" /etc/redis/redis.conf | cut -d ' ' -f 2)
47+ if [ ! -z "$PASS_CHECK" ]; then
48+ export REDISCLI_AUTH="$PASS_CHECK"
4749 fi
4850 response=$(
4951 redis-cli ping
You can’t perform that action at this time.
0 commit comments