csi-driver/deploy/examplepod.yaml

32 lines
709 B
YAML

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: example-pvc
namespace: p5x-system
spec:
storageClassName: p5x
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: Pod
metadata:
name: example-pod
namespace: p5x-system
spec:
containers:
- name: example-ct
image: fedora:39
command: ['/bin/bash', '-c', '--']
args: ['while true; do sleep 30; done;']
volumeMounts:
- mountPath: '/mnt/example-pvc'
name: example-pvc
volumes:
- name: example-pvc
persistentVolumeClaim:
claimName: example-pvc