apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-70show
namespace: nerc-project
labels:
alicloud-pvname: pv-oss-70show
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
csi:
driver: ossplugin.csi.alibabacloud.com
volumeAttributes:
akId: 'LTAI4GHvPBF6FiiK1aMYVmVZ'
akSecret: '2k3j7cRnArLJqGp76tk7pmykNuWTqa'
bucket: "fzstorage"
url: "oss-cn-beijing.aliyuncs.com"
otherOpts: "-o max_stat_cache_size=0 -o allow_other"
path: "/70show"
volumeHandle: 'pv-oss-40show'
persistentVolumeReclaimPolicy: Retain
storageClassName: oss
volumeMode: Filesystem
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-70show
namespace: nerc-project
spec:
accessModes:
- ReadWriteMany
storageClassName: oss
resources:
requests:
storage: 1Gi
selector:
matchLabels:
alicloud-pvname: pv-oss-70show
评论区