Difference between revisions of "Volumes (Kubernetes)"
Jump to navigation
Jump to search
↑ 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
(4 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
* 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) | ** Support for raw [[block storage]] in CSI ([[v1.18]], March 2020) | ||
Line 17: | Line 17: | ||
== Related terms == | == 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 [[persistent volumes]] and know how to create them | ||
* [[CKA v1.18]]: Understand [[access modes]] for volumes | * [[CKA v1.18]]: Understand [[access modes]] for volumes | ||
Line 23: | Line 24: | ||
* [[Persistent Volumes (Kubernetes)]] | * [[Persistent Volumes (Kubernetes)]] | ||
* <code>[[kubectl describe]] pvc mysql-pv-claim</code> | * <code>[[kubectl describe]] pvc mysql-pv-claim</code> | ||
+ | * <code>[[kind: ConfigMap]]</code> | ||
== Activities == | == Activities == | ||
Line 30: | Line 32: | ||
* [[Persistent Volumes]] | * [[Persistent Volumes]] | ||
* {{CKA}} | * {{CKA}} | ||
− | * {{K8s}} | + | * {{K8s storage}} |
[[Category:Kubernetes]] | [[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:
- Cinder, configMap, CSI, downwardAPI
- emptyDir: the data in the emptyDir is deleted forever when Pod is removed from a node.
- FlexVolume (deprecated)[4], can be expanded [5]
- 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
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]
- CKA v1.23: Understand volume mode, access modes and reclaim policies for 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
kind: PersistentVolume
- Persistent Volumes (Kubernetes)
kubectl describe pvc mysql-pv-claim
kind: ConfigMap
Activities[edit]
See also[edit]
- Persistent Volumes
- CKA: v1.28: API, Namespace, Pods, secrets, Services, deployments, nodes, Volumes, Ingress, CKS
- Kubernetes storage, storage classes, PersistentVolume (PV), PVC, CSI,
kind: StorageClass, kind: PersistentVolumeClaim, kind: PersistentVolume
,kubectl [ get | describe | edit ] pvc
,volumeClaimTemplates:
,kubectl patch pv
,FailedMount
, Volume Expansion, Volume Cloning, snapshots, ExtraVolumes, NotTriggerScaleUp,volumePVCDataSource, AllowVolumeExpansion
, EKS storage, provisioner, Storage Capacity Tracking,VolumeBinding, VolumeClaimTemplate, storage.k8s.io
, CKA Storage, DoKC, EmptyDir, Volume populators,storageclass.kubernetes.io
Advertising: