我正在使用以下配置创建持久卷声明,并且抛出错误:
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: my-pvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
storageClassName: glusterfs-storage
volumeName: my-vol
运行命令
oc create -f my-pvc.yaml
在Webconsole中,存储状态为以下状态:
Pending to volume my-vol
如果我创建PVC时未提及 volumeName ,则说明成功:
Bound to volume pvc-df6c0c98-dc61-11e8-ba2d-6ab2cd7f5c23