惜风不起、唯有努力!
k8s pv,pvc demo

k8s pv,pvc demo

---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: nginx-pv
spec:
  capacity:
    storage: 5Gi
  accessModes:
    - ReadWriteMany
  nfs:
    path: nfs持久化路径
    server: nfs地址
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: nginx-pvc
spec:
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 5Gi

发表回复

您的电子邮箱地址不会被公开。