pvc 一直处于Pending?
来源:11-5 共享存储 --- PV、PVC和StorageClass(下)

eddie_k2
2020-05-31
[root@kubernetes-master-01 ~]# kubectl describe pvc
Name: glusterfs-pvc
Namespace: default
StorageClass: glusterfs-storage-class
Status: Pending
Volume:
Labels: <none>
Annotations: kubectl.kubernetes.io/last-applied-configuration:
{"apiVersion":"v1","kind":"PersistentVolumeClaim","metadata":{"annotations":{},"name":"glusterfs-pvc","namespace":"default"},"spec":{"acce...
volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/glusterfs
Finalizers: [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode: Filesystem
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning ProvisioningFailed 3s persistentvolume-controller Failed to provision volume with StorageClass "glusterfs-storage-class": failed to create volume: failed to create volume: Post http://192.168.8.242:30001/volumes: read tcp 192.168.8.238:38354->192.168.8.242:30001: read: connection reset by peer
Mounted By: <none>
pvc 一直处于Pending? 怎么解决?! 用的是二进制安装,之前用kubeadm方式没有出现过这种情况
1回答
-
刘果国
2020-06-01
你好,关注最后的Events提示的错误,创建volume失败了:“Post http://192.168.8.242:30001/volumes: read tcp 192.168.8.238:38354->192.168.8.242:30001: read: connection reset by peer”检查一下报错的端口,看下对应的服务日志
052022-11-20
相似问题
回答 1