infrastructure/k8s/hack/volume-mount.yaml

19 lines
400 B
YAML
Raw Permalink Normal View History

apiVersion: v1
kind: Pod
metadata:
name: backup
namespace: nextcloud
spec:
restartPolicy: Never
volumes:
- name: vol
persistentVolumeClaim:
claimName: nocodb-metadata
containers:
- name: backup
image: "docker.io/alpine:latest"
command: [ "/bin/ash", "-c", "--" ]
args: [ "while true; do sleep 30; done;" ]
volumeMounts:
- name: vol
mountPath: /data