Difference between revisions of "Volumes (Kubernetes)"

From wikieduonline
Jump to navigation Jump to search
(Created page with "Kubernetes Volumes allows to store data independent of Container restarts. Volumes in Kubernetes are different that Docker Volumes.<ref>...")
 
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Kubernetes Volumes allows to store data independent of [[DevOps/Container|Container]] restarts. Volumes in Kubernetes are different that [[DevOps/Docker|Docker]] Volumes.<ref>https://kubernetes.io/docs/concepts/storage/volumes/</ref>
+
[[Kubernetes]] Volumes allows to store data independent of [[DevOps/Container|Container]] restarts. Volumes in Kubernetes are different that [[DevOps/Docker|Docker]] Volumes.<ref>https://kubernetes.io/docs/concepts/storage/volumes/</ref>
  
 
Kubernetes supports different type of volumes <ref>https://kubernetes.io/docs/concepts/storage/volumes/#types-of-volumes</ref>:  
 
Kubernetes supports different type of volumes <ref>https://kubernetes.io/docs/concepts/storage/volumes/#types-of-volumes</ref>:  
* Cloud providers: awsElasticBlockStore, azureDisk, azureFile
+
* Cloud providers: <code>awsElasticBlockStore, azureDisk, azureFile</code>
* Storage technologies: fc (fibre channel)<ref>https://kubernetes.io/docs/concepts/storage/#fc</ref>, iscsi
+
* Storage technologies: [[fc]] (fibre channel)<ref>https://kubernetes.io/docs/concepts/storage/#fc</ref>, iscsi
* Networked filesystems: cephfs, nfs, [[glusterfs]]
+
* Networked filesystems: [[cephfs]], [[nfs]], [[glusterfs]]
 
* Others:  
 
* Others:  
** cinder, configMap, csi, downwardAPI
+
** [[Cinder]], [[configMap]], [[CSI]], downwardAPI
 
** emptyDir: the data in the emptyDir is '''deleted''' forever when Pod is removed from a node.
 
** emptyDir: the data in the emptyDir is '''deleted''' forever when Pod is removed from a node.
** flexVolume<ref>https://kubernetes.io/docs/concepts/storage/volumes/#flexVolume</ref>, can be expanded <ref>https://kubernetes.io/docs/concepts/storage/persistent-volumes/#expanding-persistent-volumes-claims</ref>
+
** [[FlexVolume]] (deprecated)<ref>https://kubernetes.io/docs/concepts/storage/volumes/#flexVolume</ref>, can be expanded <ref>https://kubernetes.io/docs/concepts/storage/persistent-volumes/#expanding-persistent-volumes-claims</ref>
** flocker, gcePersistentDisk, hostPath, local, persistentVolumeClaim, projected, portworxVolume, quobyte, rbd, scaleIO, secret, storageos, vsphereVolume
+
** flocker, gcePersistentDisk, [[hostPath]], local, [[persistentVolumeClaim]], projected, portworxVolume, quobyte, rbd, [[scaleIO]], secret, storageos, vsphereVolume
 +
** Support for raw [[block storage]] in CSI ([[v1.18]], March 2020)
 
* Deprecated: gitRepo
 
* Deprecated: gitRepo
 +
 +
Persistent [[volumes]] subsystem provides an API for users and administrators that abstracts details of how storage is provided from how it is consumed.
 +
 +
 +
== Related terms ==
 +
* [[CKA v1.23]]: Understand [[volume mode]], [[access modes]] and [[reclaim policies]] for [[Volumes (Kubernetes)|volumes]]
 +
* [[CKA v1.18]]: Understand [[persistent volumes]] and know how to create them
 +
* [[CKA v1.18]]: Understand [[access modes]] for volumes
 +
* [[CKA v1.15]]: [[Understand PersistentVolumeClaims for storage]]
 +
* <code>[[kind]]: PersistentVolume</code>
 +
* [[Persistent Volumes (Kubernetes)]]
 +
* <code>[[kubectl describe]] pvc mysql-pv-claim</code>
 +
* <code>[[kind: ConfigMap]]</code>
 +
 +
== Activities ==
 +
* Read https://kubernetes.io/docs/concepts/storage/persistent-volumes/
  
 
== See also ==
 
== See also ==
 
* [[Persistent Volumes]]
 
* [[Persistent Volumes]]
* [[DevOps/Kubernetes/Certified Kubernetes Administrator|Certified Kubernetes Administrator]]: [[DevOps/Kubernetes/Certified Kubernetes Administrator/Understand PersistentVolumeClaims for storage|Understand PersistentVolumeClaims for storage]]
+
* {{CKA}}
* [[DevOps/Kubernetes/Pods|Pods]]
+
* {{K8s storage}}
 +
 
 +
 
 +
[[Category:Kubernetes]]

Latest revision as of 11:42, 16 November 2023

Kubernetes Volumes allows to store data independent of Container restarts. Volumes in Kubernetes are different that Docker Volumes.[1]

Kubernetes supports different type of volumes [2]:

  • Cloud providers: awsElasticBlockStore, azureDisk, azureFile
  • Storage technologies: fc (fibre channel)[3], iscsi
  • Networked filesystems: cephfs, nfs, glusterfs
  • Others:
  • Deprecated: gitRepo

Persistent volumes subsystem provides an API for users and administrators that abstracts details of how storage is provided from how it is consumed.


Related terms[edit]

Activities[edit]

See also[edit]

  • https://kubernetes.io/docs/concepts/storage/volumes/
  • https://kubernetes.io/docs/concepts/storage/volumes/#types-of-volumes
  • https://kubernetes.io/docs/concepts/storage/#fc
  • https://kubernetes.io/docs/concepts/storage/volumes/#flexVolume
  • https://kubernetes.io/docs/concepts/storage/persistent-volumes/#expanding-persistent-volumes-claims
  • Advertising: