generated from container/tmpl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
395 B
22 lines
395 B
kind: Pod
|
|
apiVersion: v1
|
|
metadata:
|
|
name: write-pod
|
|
spec:
|
|
containers:
|
|
- name: write-pod
|
|
image: busybox:1.24
|
|
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: nfs
|
|
|
|
|