peridot/hack/k3s/pod.yaml

19 lines
340 B
YAML
Raw Permalink Normal View History

2024-03-11 19:21:45 +00:00
apiVersion: v1
kind: Pod
metadata:
name: volume-test
spec:
containers:
- name: volume-test
image: nginx:stable-alpine
imagePullPolicy: IfNotPresent
volumeMounts:
- name: volv
mountPath: /data
ports:
- containerPort: 80
volumes:
- name: volv
persistentVolumeClaim:
claimName: local-path-pvc