无法使用 StorageClass "gluster-heketi-storageclass" 无法创建卷来配置卷:有关详细信息,请参阅 kube-controller-manager .log



My Env:kubernetes: 1.20.0从而el7.x86_64——服务器- 6.10 - 1.heketi el7.x86_64——8.0.0 - 1.heketi -客户- 8.0.0 - 1. - el7.x86_64

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: gluster-heketi-storageclass
provisioner: kubernetes.io/glusterfs
reclaimPolicy: Retain
parameters:
resturl: "http://1xxxxxxx:18080"
restauthenabled: "true"
restuser: "admin"
secretName: "heketi-secret"
secretNamespace: "default"
#volumetype: "none"
volumetype: "replicate:3"
clusterid: "60d0c41c0b232906f90b528fbb58400a"
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: glusterfs-vol-pvc02
namespace: default
spec:
storageClassName: gluster-heketi-storageclass
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi

kubectl describe PVC glusterfs-vol-pvc02

Failed to provision volume with StorageClass "gluster-heketi-storageclass": failed to create volume: failed to create volume: see kube-controller-manager.log for details

我有一个类似的错误。glusterfs节点之间的连接被破坏。运行

gluster peer status 
命令并检查所有glusterfs节点上的/etc/hosts文件。在我的例子中,hosts文件缺少必要的信息,并且并非所有节点都可以相互通信。

相关内容

  • 没有找到相关文章

最新更新