csi-driver/deploy/examplepod.yaml

82 lines
1.8 KiB
YAML

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: example-pvc-1
namespace: p5x-system
spec:
storageClassName: p5x
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: example-pvc-2
namespace: p5x-system
spec:
storageClassName: p5x
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: example-pvc-3
namespace: p5x-system
spec:
storageClassName: p5x
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: Pod
metadata:
name: example-pod-1
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-1'
name: example-pvc-1
- mountPath: '/mnt/example-pvc-2'
name: example-pvc-2
volumes:
- name: example-pvc-1
persistentVolumeClaim:
claimName: example-pvc-1
- name: example-pvc-2
persistentVolumeClaim:
claimName: example-pvc-2
---
apiVersion: v1
kind: Pod
metadata:
name: example-pod-2
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-3'
name: example-pvc-3
volumes:
- name: example-pvc-3
persistentVolumeClaim:
claimName: example-pvc-3