尝试为 Kubernetes 卷使用 NFS 存储但未能成功。
persistentvolumeclaim无法绑定到已经创建的persistentvolume,见下文
创建持久卷
apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
nfs:
server: 192.0.2.100
path: "/nfsshare"
创建持久卷声明
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: nfs
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Gi
persistentvolumeclaim 的事件日志显示
kubectl get events:
"provisionable volume plugin matched"
任何想法可能会阻止 k8s 绑定两者?