K8s 集群上的 GlusterFS 部署——就绪探测失败:/usr/local/bin/status-probe.sh

GlusterFS deployment on k8s cluster-- Readiness probe failed: /usr/local/bin/status-probe.sh

设置:k8s(AKS) 集群上的 GlusterFS;

使用 gk-deploy 部署 glusterfs 时出现问题;下面分享了一些错误片段,请提出解决方法以使我的部署继续进行 - 在此先感谢。

Getting same error : Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning Unhealthy 8m44s (x459 over 3h45m) kubelet, aks-nodepool1-70391060-0 Readiness probe failed: /usr/local/bin/status-probe.sh failed check: systemctl -q is-active gluster-blockd.service Warning Unhealthy 4m2s (x462 over 3h46m) kubelet, aks-nodepool1-70391060-0 Liveness probe failed: /usr/local/bin/status-probe.sh failed check: systemctl -q is-active gluster-blockd.service

当我检查 pod 的 glusterd 状态时 - 它看起来很成功,可能是什么导致准备就绪报告失败 - 有什么想法/想法吗?

glsuterd status

探测器不仅检查 glusterd.service 的状态。还有一些其他的事情需要考虑。 status-probe.sh script is available from github。留言

Liveness probe failed: /usr/local/bin/status-probe.sh failed check: systemctl -q is-active gluster-blockd.service

表示gluster-blockd.service不正确运行。这可能有不同的原因,您需要检查 gluster-blockd.logtcmu-runner.log 以找出问题所在。

gluster-blockd.service 是可选的。如果您的环境中不需要 type=block 的 PersistentVolumes,您可以禁用检查。

在daemonset的规范中,您可以更改环境变量GLUSTER_BLOCKD_STATUS_PROBE_ENABLE并将值设置为"0"