我正在kubernetes集群中设置redis-ha。我用头盔来安装它。但是我的haproxy pods保持了crashloopbackoff
我正在使用Helm通过以下命令在Kubernetes集群中安装redis-ha:helm install -f develop-redis-values.yaml stable/redis-ha --namespace=develop -n=develop-redis
在developer-redis-values.yaml中,我将haproxy.enabled设置为true
这是我的crashloopbackoff窗格中的日志
> [ALERT] 268/104750 (1) : parsing [/usr/local/etc/haproxy/haproxy.cfg:34] : 'tcp-check expect string' expects <string> as an argument.
> [ALERT] 268/104750 (1) : Error(s) found in configuration file : /usr/local/etc/haproxy/haproxy.cfg
> [ALERT] 268/104750 (1) : Fatal errors found in configuration.
我希望haproxy容器正在运行
答案 0 :(得分:0)
CrashLoopBackError
可能与以下可能原因有关:
在您的情况下,haproxy配置文件似乎存在一些错误。 您是否尝试过在本地提取您正在使用的图像,并启动一个容器进行验证? 您可以输入容器并使用以下命令检查配置:
haproxy -c -V -f /usr/local/etc/haproxy/haproxy.cfg
有关更多信息和调试方式: https://pillsfromtheweb.blogspot.com/2020/05/troubleshooting-kubernetes.html