Skip to content

Commit

Permalink
Merge pull request #430 from pych/liveness-probe-fails-with-password
Browse files Browse the repository at this point in the history
Ping user for the Liveness Probe
  • Loading branch information
ese authored Aug 24, 2022
2 parents b6e3b05 + 0324a9d commit 7714614
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion operator/redisfailover/service/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const (
tcp-keepalive 60
save 900 1
save 300 10
user pinger -@all +ping on >pingpass
{{- range .Spec.Redis.CustomCommandRenames}}
rename-command "{{.From}}" "{{.To}}"
{{- end}}
Expand Down Expand Up @@ -320,7 +321,7 @@ func generateRedisStatefulSet(rf *redisfailoverv1.RedisFailover, labels map[stri
Command: []string{
"sh",
"-c",
"redis-cli -h $(hostname) ping",
"redis-cli -h $(hostname) ping --user pinger --pass pingpass --no-auth-warning",
},
},
},
Expand Down

0 comments on commit 7714614

Please sign in to comment.