Kubernetes storage

Volumes

pod in one node mount volume 


https://github.com/tomshenhao/kubernetes-learning/blob/master/pod_hostpath.yaml


replicaset / deployment on cluster mount on volume as aws EBS


Persistent Volume

admin create persistent volume


create pv #kubectl create -f <yaml file>

check pv #kubectl get persistentvolume


https://github.com/tomshenhao/kubernetes-learning/blob/master/persistentvolume.yaml


Persistent Volume Claims

user create persistent volume claims to use persistent volume


create pvc #kubectl create -f <yaml file>

check pvc #kubectl get persistentvolumeclaim

delete pvc #kubectl delete persistentvolumeclaim <name>


https://github.com/tomshenhao/kubernetes-learning/blob/master/persistentvolumeclaim.yaml


Pod use persistent volume claim

https://github.com/tomshenhao/kubernetes-learning/blob/master/pod_pvc.yaml


Comments

Popular posts from this blog

Nginx Proxy & Load Balance & LNMP

Snort+barnyard2+Snorby CentOS 6.5_64 Installation

ORACLE Error