--- apiVersion: v1 kind: PersistentVolume metadata: name: manualbucket-with-path spec: storageClassName: csi-s3 capacity: storage: 10Gi accessModes: - ReadWriteMany claimRef: namespace: default name: csi-s3-manual-pvc csi: driver: ru.yandex.s3.csi 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 options: --memory-limit 1000 --dir-mode 0777 --file-mode 0666 -o allow_other --uid 999 --gid 999 volumeHandle: manualbucket/path --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: csi-s3-manual-pvc spec: # Empty storage class disables dynamic provisioning storageClassName: "" accessModes: - ReadWriteMany resources: requests: storage: 10Gi --- apiVersion: apps/v1 kind: Deployment metadata: name: mysql-deployment spec: replicas: 1 selector: matchLabels: app: mysql template: metadata: labels: app: mysql spec: containers: - name: mysql image: mysql:8.4.0 ports: - containerPort: 3306 env: - name: MYSQL_ROOT_PASSWORD value: "root" volumeMounts: - name: mysql-volume mountPath: /var/lib/mysql volumes: - name: mysql-volume persistentVolumeClaim: claimName: csi-s3-manual-pvc