apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
annotations:
storage.resource.caicloud.io/alias: nfs
storage.resource.caicloud.io/app-ids: ""
storage.resource.caicloud.io/app-names: ""
storage.resource.caicloud.io/description: ""
storage.resource.caicloud.io/process: "true"
storage.resource.caicloud.io/service: "nfs-20210204034030-fa5b54"
storage.resource.caicloud.io/storageclass-quota: ‘{"persistentvolumeclaims":"100","requests.storage":"100Gi"}‘
storage.resource.caicloud.io/type: nfs
finalizers:
- storage.resource.caicloud.io/storageclass-deletion
name: manual
parameters:
exportPath: /id114878_vol1001_prd
server: 192.168.1.1
mountOptions: "vers=3.0,nfsvers=3"
mountOptions:
- vers=3.0
- nfsvers=3
provisioner: caicloud.io/nfs
reclaimPolicy: Delete
volumeBindingMode: Immediate
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-cimb-sit2
spec:
storageClassName: manual
capacity:
storage: 100Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
nfs:
path: /id114878_vol1001_prd
server: 192.168.1.1
readOnly: false
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-cimb-sit2
namespace: poc-hk
spec:
accessModes:
- ReadWriteMany
storageClassName: manual
resources:
requests:
storage: 100Gi
原文:https://www.cnblogs.com/chase2020/p/14386020.html