Difference between revisions of "Kubernetes provisioner"
Jump to navigation
Jump to search
(31 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | To enable dynamic provisioning, a cluster administrator needs to pre-create one or more [[StorageClass]] objects for users. | ||
− | [[kubectl get | + | |
− | NAME [[PROVISIONER]] RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE | + | [[kubectl get storageclass]] |
− | gp2 (default) kubernetes.io/aws-ebs Delete WaitForFirstConsumer false 11d | + | NAME [[PROVISIONER]] RECLAIMPOLICY VOLUMEBINDINGMODE [[ALLOWVOLUMEEXPANSION]] AGE |
+ | gp2 (default) [[kubernetes.io/aws-ebs]] Delete WaitForFirstConsumer false 11d | ||
+ | |||
+ | * <code>[[kubectl get provisioner]]</code> | ||
+ | * <code>[[kubectl describe provisioner]]</code> | ||
+ | * <code>[[kubectl patch provisioner]]</code> | ||
+ | * <code>[[kind: provisioner]]</code> | ||
+ | |||
+ | Provisioners: | ||
+ | [[kubernetes.io/aws-ebs]] | ||
+ | [[k8s.io/minikube-hostpath]] | ||
+ | [[kubernetes.io/gce-pd]] | ||
+ | [[pd.csi.storage.gke.io]] | ||
+ | [[kubernetes.io/no-provisioner]] | ||
https://kubernetes.io/docs/concepts/storage/storage-classes/ | https://kubernetes.io/docs/concepts/storage/storage-classes/ | ||
Volume Plugin Internal Provisioner Config Example | Volume Plugin Internal Provisioner Config Example | ||
− | AWSElasticBlockStore ✓ AWS EBS | + | [[AWSElasticBlockStore]] ✓ AWS EBS |
− | AzureFile ✓ Azure File | + | [[AzureFile]] ✓ Azure File |
− | AzureDisk ✓ Azure Disk | + | [[AzureDisk]] ✓ Azure Disk |
− | CephFS - - | + | [[CephFS]] - - |
− | Cinder ✓ OpenStack Cinder | + | [[Cinder]] ✓ OpenStack Cinder |
− | FC - - | + | [[FC]] - - |
− | FlexVolume - - | + | [[FlexVolume]] - - |
− | Flocker ✓ - | + | [[Flocker]] ✓ - |
− | GCEPersistentDisk ✓ GCE PD | + | [[GCEPersistentDisk]] ✓ GCE PD |
− | Glusterfs ✓ Glusterfs | + | [[Glusterfs]] ✓ Glusterfs |
− | iSCSI - - | + | [[iSCSI]] - - |
− | Quobyte ✓ Quobyte | + | [[Quobyte]] ✓ Quobyte |
− | NFS - NFS | + | [[NFS]] - NFS |
− | RBD ✓ Ceph RBD | + | [[RBD]] ✓ Ceph RBD |
− | VsphereVolume ✓ vSphere | + | [[VsphereVolume]] ✓ vSphere |
− | PortworxVolume ✓ Portworx Volume | + | [[PortworxVolume]] ✓ Portworx Volume |
− | ScaleIO ✓ ScaleIO | + | [[ScaleIO]] ✓ ScaleIO |
− | StorageOS ✓ StorageOS | + | [[StorageOS]] ✓ StorageOS |
− | Local - Local | + | [[Local]] - Local |
Line 35: | Line 49: | ||
* https://kubernetes.io/docs/concepts/storage/dynamic-provisioning/ | * https://kubernetes.io/docs/concepts/storage/dynamic-provisioning/ | ||
* [[StorageClass]] | * [[StorageClass]] | ||
+ | * <code>[[allowVolumeExpansion:]] true</code> | ||
+ | * [[Karpenter]] | ||
+ | * <code>[[limits:]]</code> | ||
+ | * <code>[[annotations]]</code> | ||
+ | * <code>[[kubectl get all -n karpenter]]</code> | ||
+ | |||
+ | == Read == | ||
+ | * [[Karpenter]]: https://aws.amazon.com/blogs/containers/managing-pod-scheduling-constraints-and-groupless-node-upgrades-with-karpenter-in-amazon-eks/ | ||
== See also == | == See also == | ||
+ | * {{kubectl provisioner}} | ||
+ | * {{Kubernetes provisioner}} | ||
* {{Kubernetes storage}} | * {{Kubernetes storage}} | ||
− | |||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Latest revision as of 14:05, 8 March 2024
To enable dynamic provisioning, a cluster administrator needs to pre-create one or more StorageClass objects for users.
kubectl get storageclass NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE gp2 (default) kubernetes.io/aws-ebs Delete WaitForFirstConsumer false 11d
Provisioners:
kubernetes.io/aws-ebs k8s.io/minikube-hostpath kubernetes.io/gce-pd pd.csi.storage.gke.io kubernetes.io/no-provisioner
https://kubernetes.io/docs/concepts/storage/storage-classes/
Volume Plugin Internal Provisioner Config Example AWSElasticBlockStore ✓ AWS EBS AzureFile ✓ Azure File AzureDisk ✓ Azure Disk CephFS - - Cinder ✓ OpenStack Cinder FC - - FlexVolume - - Flocker ✓ - GCEPersistentDisk ✓ GCE PD Glusterfs ✓ Glusterfs iSCSI - - Quobyte ✓ Quobyte NFS - NFS RBD ✓ Ceph RBD VsphereVolume ✓ vSphere PortworxVolume ✓ Portworx Volume ScaleIO ✓ ScaleIO StorageOS ✓ StorageOS Local - Local
Related[edit]
- Volume plugin
- https://kubernetes.io/docs/concepts/storage/dynamic-provisioning/
- StorageClass
allowVolumeExpansion: true
- Karpenter
limits:
annotations
kubectl get all -n karpenter
Read[edit]
- Karpenter: https://aws.amazon.com/blogs/containers/managing-pod-scheduling-constraints-and-groupless-node-upgrades-with-karpenter-in-amazon-eks/
See also[edit]
kubeclt [ get | describe | patch ] provisioner
- Kubernetes provisioner:
kubernetes.io/gce-pd, kubernetes.io/aws-ebs, pd.csi.storage.gke.io, k8s.io/minikube-hostpath
,ExternalProvisioning
,kubectl get provisioner, kubectl describe provisioner, kubectl patch provisioner
- 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: