...
2- upload the file to Kubernetes ( +CREATE )
3- Claims the volume
Configuring a Pod to Use a PersistentVolume for Storage
more volume_in_tmp.yml
kind: PersistentVolume
apiVersion: v1
metadata:
name: task-pv-volume
labels:
type: local
spec:
capacity:
storage: 10Mi
accessModes:
- ReadWriteOnce
hostPath:
path: "/tmp/data"