Browse Source

Add block PVC and pod examples

csi-use-vitastor-cli
Vitaliy Filippov 1 month ago
parent
commit
98e3528a14
  1. 13
      csi/deploy/example-pvc-block.yaml
  2. 17
      csi/deploy/example-test-pod-block.yaml
  3. 17
      csi/deploy/example-test-pod.yaml

13
csi/deploy/example-pvc-block.yaml

@ -0,0 +1,13 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: test-vitastor-pvc-block
spec:
storageClassName: vitastor
volumeMode: Block
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Gi

17
csi/deploy/example-test-pod-block.yaml

@ -0,0 +1,17 @@
apiVersion: v1
kind: Pod
metadata:
name: vitastor-test-block-pvc
namespace: default
spec:
containers:
- name: vitastor-test-block-pvc
image: nginx
volumeDevices:
- name: data
devicePath: /dev/xvda
volumes:
- name: data
persistentVolumeClaim:
claimName: test-vitastor-pvc-block
readOnly: false

17
csi/deploy/example-test-pod.yaml

@ -0,0 +1,17 @@
apiVersion: v1
kind: Pod
metadata:
name: vitastor-test-nginx
namespace: default
spec:
containers:
- name: vitastor-test-nginx
image: nginx
volumeMounts:
- mountPath: /usr/share/nginx/html/s3
name: data
volumes:
- name: data
persistentVolumeClaim:
claimName: test-vitastor-pvc
readOnly: false
Loading…
Cancel
Save