32 lines
521 B
YAML
32 lines
521 B
YAML
|
apiVersion: v1
|
||
|
kind: Pod
|
||
|
metadata:
|
||
|
name: busybox-sleep
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: busybox
|
||
|
image: busybox
|
||
|
args:
|
||
|
- sleep
|
||
|
- "1000000"
|
||
|
volumeMounts:
|
||
|
- mountPath: /test
|
||
|
name: testmount
|
||
|
volumes:
|
||
|
- name: testmount
|
||
|
persistentVolumeClaim:
|
||
|
claimName: busybox-pvc-test
|
||
|
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: PersistentVolumeClaim
|
||
|
metadata:
|
||
|
name: busybox-pvc-test
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteMany
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 100Mi
|
||
|
storageClassName: rook-cephfs
|