mirror of https://github.com/easzlab/kubeasz.git
36 lines
606 B
Plaintext
36 lines
606 B
Plaintext
|
---
|
||
|
kind: PersistentVolumeClaim
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: test-claim
|
||
|
spec:
|
||
|
storageClassName: {{ nfs_storage_class }}
|
||
|
accessModes:
|
||
|
- ReadWriteMany
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 2Mi
|
||
|
|
||
|
---
|
||
|
kind: Pod
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: test-pod
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: test-pod
|
||
|
image: busybox
|
||
|
command:
|
||
|
- "/bin/sh"
|
||
|
args:
|
||
|
- "-c"
|
||
|
- "touch /mnt/SUCCESS && exit 0 || exit 1"
|
||
|
volumeMounts:
|
||
|
- name: nfs-pvc
|
||
|
mountPath: "/mnt"
|
||
|
restartPolicy: "Never"
|
||
|
volumes:
|
||
|
- name: nfs-pvc
|
||
|
persistentVolumeClaim:
|
||
|
claimName: test-claim
|