Trident dynamic provisioning and FSx...

0

Is there a way to get the dynamic provisioned PVC to have persistentVolumeReclaimPolicy set to Retain instead of Delete?

已提问 6 个月前200 查看次数
1 回答
0

You can consider checking below AWS blogs for persistent storage on Amazon EKS as they have example file system created with "persistentVolumeReclaimPolicy" set to 'Retain'

Sharing one example snippet

#pv.yaml
---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: efs-pv
spec:
  capacity:
    storage: 5Gi
  volumeMode: Filesystem
  accessModes:
    - ReadWriteOnce
  storageClassName: ""
  persistentVolumeReclaimPolicy: Retain
  csi:
    driver: efs.csi.aws.com
    volumeHandle: fs-073d77123471b2917
AWS
支持工程师
已回答 6 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则