Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redis-cluster livenessProbe is Ineffective #98

Open
chawanbid opened this issue Apr 5, 2022 · 0 comments
Open

redis-cluster livenessProbe is Ineffective #98

chawanbid opened this issue Apr 5, 2022 · 0 comments

Comments

@chawanbid
Copy link

    livenessProbe:
      exec:
        command:
        - sh
        - -c
        - redis-cli -h $(hostname) ping

这个健康检查在pod内不管设不设密码均返回0;
修复方式为
redis-cli -h $(hostname) -a REDIS_PASSWORD ping | grep -i pong
我查了下该配置并不是在configmap中是在
./pkg/resources/statefulsets/statefulset.go: probeArg := "redis-cli -h $(hostname) ping"
能否修改下这段代码然后修复这个bug。
感谢
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant