Skip to content

Commit

Permalink
Adding explicit bind to redis and sentinel for IPv4 clusters #5957 (#…
Browse files Browse the repository at this point in the history
…6005)

* fix(redis-ha): Adding explicit bind to redis and sentinel config to support IPv4 clusters. Closes #5957

Signed-off-by: Ryan Umstead <[email protected]>
  • Loading branch information
rumstead authored and alexmt committed Apr 12, 2021
1 parent 85728a6 commit 2bbb0b1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
4 changes: 3 additions & 1 deletion manifests/ha/base/redis-ha/chart/upstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ data:
redis.conf: |
dir "/data"
port 6379
bind 0.0.0.0
maxmemory 0
maxmemory-policy volatile-lru
min-replicas-max-lag 5
Expand All @@ -55,6 +56,7 @@ data:
sentinel failover-timeout argocd 180000
maxclients 10000
sentinel parallel-syncs argocd 5
bind 0.0.0.0
init.sh: |
echo "$(date) Start..."
Expand Down Expand Up @@ -852,7 +854,7 @@ spec:
template:
metadata:
annotations:
checksum/init-config: f967dc53802e37a7bd0a7097785686e65cefc3002881b7c2a1936b3988698c11
checksum/init-config: 7128bfbb51eafaffe3c33b1b463e15f0cf6514cec570f9d9c4f2396f28c724ac
labels:
release: argocd
app: redis-ha
Expand Down
4 changes: 4 additions & 0 deletions manifests/ha/base/redis-ha/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ redis-ha:
masterGroupName: argocd
config:
save: "\"\""
bind: "0.0.0.0"
haproxy:
enabled: true
image:
tag: 2.0.20-alpine
image:
tag: 6.2.1-alpine
sentinel:
config:
replaceme: "0.0.0.0"
1 change: 1 addition & 0 deletions manifests/ha/base/redis-ha/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ helm template argocd ./chart \
sed -e 's/check inter 1s/check inter 3s/' ./chart/upstream_orig.yaml >> ./chart/upstream.yaml && rm ./chart/upstream_orig.yaml
sed -i.bak 's/timeout server 30s/timeout server 6m/' ./chart/upstream.yaml && rm ./chart/upstream.yaml.bak
sed -i.bak 's/timeout client 30s/timeout client 6m/' ./chart/upstream.yaml && rm ./chart/upstream.yaml.bak
sed -i.bak -E 's/^([[:space:]]){8}sentinel replaceme argocd/ bind/' ./chart/upstream.yaml && rm ./chart/upstream.yaml.bak
4 changes: 3 additions & 1 deletion manifests/ha/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2850,6 +2850,7 @@ data:
redis.conf: |
dir "/data"
port 6379
bind 0.0.0.0
maxmemory 0
maxmemory-policy volatile-lru
min-replicas-max-lag 5
Expand All @@ -2865,6 +2866,7 @@ data:
sentinel failover-timeout argocd 180000
maxclients 10000
sentinel parallel-syncs argocd 5
bind 0.0.0.0
kind: ConfigMap
metadata:
labels:
Expand Down Expand Up @@ -3564,7 +3566,7 @@ spec:
template:
metadata:
annotations:
checksum/init-config: f967dc53802e37a7bd0a7097785686e65cefc3002881b7c2a1936b3988698c11
checksum/init-config: 7128bfbb51eafaffe3c33b1b463e15f0cf6514cec570f9d9c4f2396f28c724ac
labels:
app.kubernetes.io/name: argocd-redis-ha
spec:
Expand Down
4 changes: 3 additions & 1 deletion manifests/ha/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2765,6 +2765,7 @@ data:
redis.conf: |
dir "/data"
port 6379
bind 0.0.0.0
maxmemory 0
maxmemory-policy volatile-lru
min-replicas-max-lag 5
Expand All @@ -2780,6 +2781,7 @@ data:
sentinel failover-timeout argocd 180000
maxclients 10000
sentinel parallel-syncs argocd 5
bind 0.0.0.0
kind: ConfigMap
metadata:
labels:
Expand Down Expand Up @@ -3479,7 +3481,7 @@ spec:
template:
metadata:
annotations:
checksum/init-config: f967dc53802e37a7bd0a7097785686e65cefc3002881b7c2a1936b3988698c11
checksum/init-config: 7128bfbb51eafaffe3c33b1b463e15f0cf6514cec570f9d9c4f2396f28c724ac
labels:
app.kubernetes.io/name: argocd-redis-ha
spec:
Expand Down

0 comments on commit 2bbb0b1

Please sign in to comment.