Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image RemovedImage Added

Kubernetes Persistent Volumes and Claims

Widget Connector
urlhttps://www.youtube.com/watch?v=47ZiRGgSxjs



1- create

...

a persistentvolume yaml file

2- upload the file to Kubernetes  ( +CREATE )

3- create a persistentvolumeclaim yaml file

4- Claims the persistentvolume

5- add to a pod the persistentvolume


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 )







Image Added


3- create a persistentvolumeclaim yaml file


Image Added


4- Claims the persistentvolume ( on Kubernetes Web UI )


Image Added



Image Added