Difference between revisions of "Kubernetes.io/gce-pd"

From wikieduonline
Jump to navigation Jump to search
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
* https://kubernetes.io/docs/concepts/storage/storage-classes/#gce-pd
 
* https://kubernetes.io/docs/concepts/storage/storage-classes/#gce-pd
 +
* Git: https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver
 +
 +
 +
[[kubectl describe pv]] | grep Type
 +
    Type:      [[GCEPersistentDisk]] (a Persistent Disk resource in Google Compute Engine)
  
  
 
  kubectl get storageclass
 
  kubectl get storageclass
 
  NAME                [[PROVISIONER]]            RECLAIMPOLICY  VOLUMEBINDINGMODE  [[ALLOWVOLUMEEXPANSION]]  AGE
 
  NAME                [[PROVISIONER]]            RECLAIMPOLICY  VOLUMEBINDINGMODE  [[ALLOWVOLUMEEXPANSION]]  AGE
  standard (default)  kubernetes.io/gce-pd  Delete          Immediate          false                  3y220d
+
  standard (default)  [[kubernetes.io/]]gce-pd  Delete          Immediate          false                  3y220d
  
 
  kubectl get storageclass
 
  kubectl get storageclass
 
  NAME                [[PROVISIONER]]            RECLAIMPOLICY  VOLUMEBINDINGMODE  [[ALLOWVOLUMEEXPANSION]]  AGE
 
  NAME                [[PROVISIONER]]            RECLAIMPOLICY  VOLUMEBINDINGMODE  [[ALLOWVOLUMEEXPANSION]]  AGE
 
  standard (default)  kubernetes.io/gce-pd    Delete          Immediate              true                  461d
 
  standard (default)  kubernetes.io/gce-pd    Delete          Immediate              true                  461d
 +
 +
[[ALLOWVOLUMEEXPANSION]]
 +
* https://kubernetes.io/docs/concepts/storage/storage-classes/#allow-volume-expansion
 +
gcePersistentDisk [[1.11]]
  
  
Line 18: Line 27:
 
   name: slow
 
   name: slow
 
  provisioner: kubernetes.io/gce-pd
 
  provisioner: kubernetes.io/gce-pd
 +
[[parameters:]]
 +
  type: [[pd-standard]]
 +
  zone: us-central1-a
 +
 +
* https://kubernetes.io/docs/concepts/storage/storage-classes/#gce-pd
 +
apiVersion: storage.k8s.io/v1
 +
kind: StorageClass
 +
metadata:
 +
  name: slow
 +
[[provisioner:]] kubernetes.io/gce-pd
 
  parameters:
 
  parameters:
 
   type: pd-standard
 
   type: pd-standard
   zone: us-central1-a
+
   fstype: ext4
 +
  replication-type: none
  
 
== Changelog ==
 
== Changelog ==
Line 33: Line 53:
  
 
* <code>[[ExpandInUsePersistentVolumes]]</code>
 
* <code>[[ExpandInUsePersistentVolumes]]</code>
 +
* [[xfs]]
 +
* <code>[[AllowVolumeExpansion]]</code>
 +
* <code>[[k8s.io/minikube-hostpath]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{Kubernetes provisioner}}
 
* {{Kubernetes storage}}
 
* {{Kubernetes storage}}
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Latest revision as of 20:31, 8 December 2022


kubectl describe pv | grep Type
   Type:       GCEPersistentDisk (a Persistent Disk resource in Google Compute Engine)


kubectl get storageclass
NAME                 PROVISIONER            RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
standard (default)   kubernetes.io/gce-pd   Delete          Immediate           false                  3y220d
kubectl get storageclass
NAME                 PROVISIONER            RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
standard (default)   kubernetes.io/gce-pd    Delete          Immediate              true                   461d

ALLOWVOLUMEEXPANSION

gcePersistentDisk	1.11


kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: slow
provisioner: kubernetes.io/gce-pd
parameters:
  type: pd-standard
  zone: us-central1-a
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: slow
provisioner: kubernetes.io/gce-pd
parameters:
  type: pd-standard
  fstype: ext4
  replication-type: none

Changelog[edit]

  • v1.21 Newly provisioned PVs by gce-pd will no longer have the beta FailureDomain label. gce-pd volume plugin will start to have GA topology label instead. (#98700, @Jiawei0227) [SIG Cloud Provider, Storage and Testing]

ExpandInUsePersistentVolumes. It is supported by the in-tree volume plugins GCE-PD, AWS-EBS, Cinder, and Ceph RB

Related[edit]

See also[edit]

Advertising: