Glusterfs:无法从服务器获取'volume file'



我在 pod 日志中看到以下错误:

, the following error information was pulled from the glusterfs log to help diagnose this issue: 
[2020-01-10 20:57:47.132637] E [glusterfsd-mgmt.c:1804:mgmt_getspec_cbk] 0-glusterfs: failed to get the 'volume file' from server
[2020-01-10 20:57:47.132690] E [glusterfsd-mgmt.c:1940:mgmt_getspec_cbk] 0-mgmt: failed to fetch volume file (key:vol_32dd7b246275)

我在三台服务器上安装了 glusterfs - 服务器 1、2 和 3。我正在使用heketi进行PVC的动态配置。PVC 创建成功,但在我尝试在此卷上挂载某些内容时,pod 创建显示以下状态:

kubectl get pods
NAME       READY   STATUS              RESTARTS   AGE
test-pod   0/2     ContainerCreating   0          4m22s

不是对 Heketi 问题的回答,而是引入了一种替代解决方案,基于 Gluster 在 Kubernetes 中提供持久存储。

Kadalu Project(https://kadalu.io(是一个基于Gluster的解决方案,它与Kubernetes本地集成,而无需使用Glusterd(Gluster的管理层(。

Kadalu 只需两个步骤即可提供 Kubernetes 存储。

安装卡达鲁操作员使用,

$ kubectl create -f https://kadalu.io/operator-latest.yaml

注册存储设备,通过该设备可以为 Kubernetes 中运行的应用程序预配持久卷。(使用pip3 install kubectl-kadalu在主节点中安装 Kubectl 插件(

$ kubectl kadalu storage-add storage-pool1 --type Replica3 
--device node1:/dev/vdc 
--device node2:/dev/vdc 
--device node3:/dev/vdc

就是这样!现在已准备好进行光伏索赔。有关快速入门 https://kadalu.io/docs/quick-start,请参阅此链接

最新的博客文章(https://kadalu.io/blog/kadalu-kubernetes-storage(解释了Kadalu可用的不同配置。

相关内容

最新更新