2024-09-29 14:37:55 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
2024-10-02 04:05:26 +00:00
|
|
|
name: example-pvc-1
|
2024-09-29 14:37:55 +00:00
|
|
|
namespace: p5x-system
|
|
|
|
spec:
|
|
|
|
storageClassName: p5x
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteOnce
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 5Gi
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
2024-10-02 04:05:26 +00:00
|
|
|
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
|
2024-09-29 14:37:55 +00:00
|
|
|
kind: Pod
|
|
|
|
metadata:
|
2024-10-02 04:05:26 +00:00
|
|
|
name: example-pod-2
|
2024-09-29 14:37:55 +00:00
|
|
|
namespace: p5x-system
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: example-ct
|
|
|
|
image: fedora:39
|
|
|
|
command: ['/bin/bash', '-c', '--']
|
|
|
|
args: ['while true; do sleep 30; done;']
|
|
|
|
volumeMounts:
|
2024-10-02 04:05:26 +00:00
|
|
|
- mountPath: '/mnt/example-pvc-3'
|
|
|
|
name: example-pvc-3
|
2024-09-29 14:37:55 +00:00
|
|
|
volumes:
|
2024-10-02 04:05:26 +00:00
|
|
|
- name: example-pvc-3
|
2024-09-29 14:37:55 +00:00
|
|
|
persistentVolumeClaim:
|
2024-10-02 04:05:26 +00:00
|
|
|
claimName: example-pvc-3
|