k3s/examples/walkthrough/pod2.yaml

17 lines
368 B
YAML

apiVersion: v1beta3
kind: Pod
metadata:
name: storage
spec:
containers:
- name: redis
image: redis
volumeMounts:
# name must match the volume name below
- name: redis-persistent-storage
# mount path within the container
mountPath: /data/redis
volumes:
- name: redis-persistent-storage
emptyDir: {}