k8s-samples/CKA_Course/storage/storage-consumer-pod.yaml

18 lines
344 B
YAML
Raw Permalink Normal View History

2022-08-23 02:03:21 +00:00
apiVersion: v1
kind: Pod
metadata:
name: pv-pod
spec:
containers:
- name: busybox
image: busybox
command: ['sh', '-c', 'echo Success! > /output/success.txt']
volumeMounts:
- name: pv-storage
mountPath: /output
volumes:
- name: pv-storage
persistentVolumeClaim:
claimName: my-pvc