Kubernetes - pod has unbound immediate PersistentVolumeClaims

前端 未结 2 1096
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-14 06:30

I\'m using mysql Kubernetes statefulset, i mapped PVs to host directory (CentOS 8 VM) but getting \" pod has unbound immediate PersistentVolumeClaims\"

apiVersio         


        
2条回答
  •  北海茫月
    2021-02-14 06:51

    PersistentVolumeClaims will remain unbound indefinitely if a matching PersistentVolume does not exist. The PersistentVolume is matched with accessModes and capacity. In this case capacity the PV is 10Gi whereas PVC has capacity of 3Gi.

    The capacity in the PV needs to same as in the claim i.e 3Gi to fix the unbound immediate PersistentVolumeClaims issue.

提交回复
热议问题