kubeasz/manifests/nfs-provisioner/test/test.yaml

35 lines
572 B
YAML

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: test
spec:
storageClassName: nfs-dynamic-class
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Mi
---
kind: Pod
apiVersion: v1
metadata:
name: test
spec:
containers:
- name: test
image: busybox
command:
- "/bin/sh"
args:
- "-c"
- "touch /mnt/YES && exit 0 || exit 1"
volumeMounts:
- name: nfs-pvc
mountPath: "/mnt"
restartPolicy: "Never"
volumes:
- name: nfs-pvc
persistentVolumeClaim:
claimName: test