Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Kubernetes Persistent Volumes and Claims



1- create the file

2- upload the file to Kubernetes  ( +CREATE )

3- Claims the volume


Configuring a Pod to Use a PersistentVolume for Storage

https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/#creating-a-persistentvolume


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"


2- upload the file to Kubernetes  ( +CREATE )





3- Claims the volume




  • No labels