unip-controller/controller/templates/box/csi-s3-pv.yaml
2025-04-15 20:56:15 +03:00

41 lines
No EOL
1.2 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# ============================================================
# Система: Единая библиотека, Центр ИИ НИУ ВШЭ
# Модуль: DataBox
# Авторы: Полежаев В.А., Хританков А.С.
# Дата создания: 2024 г.
# ============================================================
apiVersion: v1
kind: PersistentVolume
metadata:
name: {{ name }}
{% if labels %}
labels:
{% for label in labels %}
{{ label['key'] }}: {{ label['value'] }}
{% endfor %}
{% endif %}
spec:
storageClassName: {{ storage_class }}
capacity:
storage: {{ capacity }}
accessModes:
- ReadWriteMany
claimRef:
namespace: {{ pvc_namespace }}
name: {{ pvc_name }}
csi:
driver: ru.yandex.s3.csi
controllerPublishSecretRef:
name: csi-s3-secret
namespace: {{ namespace }}
nodePublishSecretRef:
name: csi-s3-secret
namespace: {{ namespace }}
nodeStageSecretRef:
name: csi-s3-secret
namespace: {{ namespace }}
volumeAttributes:
capacity: 500Mi
mounter: geesefs
options: --memory-limit 1000 --dir-mode 0777 --file-mode 0666
volumeHandle: {{ bucket_name_with_path_inside_bucket }} # bucket_name/path/inside/bucket