LlipengweiK零S
创建绑定持久化存储的pod提示无法调度。Error scheduling test/oms-api-zpiukn-8b594ddb6-cxkjh: pod has unbound immediate PersistentVolumeClaims (repeated 3 times); retrying
创建绑定持久化存储的pod提示无法调度。Error scheduling test/oms-api-zpiukn-8b594ddb6-cxkjh: pod has unbound immediate PersistentVolumeClaims (repeated 3 times); retrying
查看pvc状态:
Name: shared
Namespace: test
StorageClass: ceph-rbd
Status: Pending
Volume:
Labels: app=shared
Annotations: kubesphere.io/alias-name: shared
kubesphere.io/creator: lpw
kubesphere.io/description: 用于挂载/data/share目录
volume.beta.kubernetes.io/storage-provisioner: kubernetes.io/rbd
Finalizers: [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode: Filesystem
Events:
Type Reason Age From Message
Warning ProvisioningFailed 59s (x18 over 26m) persistentvolume-controller Failed to provision volume with StorageClass “ceph-rbd”: invalid AccessModes [ReadWriteMany]: only AccessModes [ReadWriteOnce ReadOnlyMany] are supported
Mounted By: oms-api-zpiukn-8b594ddb6-cxkjh
这里提示pvc的权限不对。
MountVolume.NewMounter initialization failed for volume “pvc-5858c583-852d-11ea-9073-566ff6da0007″ : Couldn’t get secret test/ceph-user-kube-secret err: secrets “ceph-user-kube-secret” not found
这是没有创建secret
lipengwei 这里是rbd不支持readwritemany,并且stroageclass一旦创建无法更新,除非创建新的