2021-07-26 21:04:02 +00:00
|
|
|
# Statically provisioned PVC:
|
|
|
|
# An existing bucket or path inside bucket manually created
|
|
|
|
# by the administrator beforehand will be bound to the PVC,
|
|
|
|
# and it won't be removed when you remove the PV
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolume
|
|
|
|
metadata:
|
2021-10-06 08:55:21 +00:00
|
|
|
name: manualbucket-with-path
|
2021-07-26 21:04:02 +00:00
|
|
|
spec:
|
|
|
|
storageClassName: csi-s3
|
|
|
|
capacity:
|
|
|
|
storage: 10Gi
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
claimRef:
|
|
|
|
namespace: default
|
2021-10-06 08:55:21 +00:00
|
|
|
name: csi-s3-manual-pvc
|
2021-07-26 21:04:02 +00:00
|
|
|
csi:
|
2021-07-27 10:05:32 +00:00
|
|
|
driver: ru.yandex.s3.csi
|
2021-07-26 21:04:02 +00:00
|
|
|
controllerPublishSecretRef:
|
|
|
|
name: csi-s3-secret
|
|
|
|
namespace: kube-system
|
|
|
|
nodePublishSecretRef:
|
|
|
|
name: csi-s3-secret
|
|
|
|
namespace: kube-system
|
|
|
|
nodeStageSecretRef:
|
|
|
|
name: csi-s3-secret
|
|
|
|
namespace: kube-system
|
|
|
|
volumeAttributes:
|
|
|
|
capacity: 10Gi
|
|
|
|
mounter: geesefs
|
2022-09-28 02:45:01 +00:00
|
|
|
options: --memory-limit 1000 --dir-mode 0777 --file-mode 0666
|
2021-07-26 21:04:02 +00:00
|
|
|
volumeHandle: manualbucket/path
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
2021-10-06 08:55:21 +00:00
|
|
|
name: csi-s3-manual-pvc
|
2021-07-26 21:04:02 +00:00
|
|
|
spec:
|
|
|
|
# Empty storage class disables dynamic provisioning
|
|
|
|
storageClassName: ""
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 10Gi
|