Difference between revisions of "Kubectl describe storageclass"

From wikieduonline
Jump to navigation Jump to search
 
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  [[kubectl describe]] storageclass ebs-sc
+
  [[kubectl describe]] [[storageclass]] [[ebs-sc]]
 +
[[kubectl describe]] [[storageclass]] [[efs-sc]]
 +
[[kubectl describe storageclass gp2]]
 +
kubectl describe storageclass [[gp3]]
 +
[[kubectl describe storageclass standard]]
  
  kubectl describe storageclass
+
== Examples ==
  Name:           gp2
+
  [[kubectl describe]] storageclass
  IsDefaultClass: Yes
+
  Name:                 standard
  Annotations:     kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"storage.k8s.io/v1","kind":"StorageClass","metadata":{"annotations": {"storageclass.kubernetes.io/is-default-class":"true"},"name":"gp2"},"parameters":{"fsType":"ext4","type":"gp2"},"provisioner":"kubernetes.io/aws-ebs","volumeBindingMode":"WaitForFirstConsumer"},storageclass.kubernetes.io/is-default-class=true
+
  IsDefaultClass:       Yes
  [[Provisioner:]]           kubernetes.io/[[aws-ebs]]
+
  Annotations:           storageclass.beta.kubernetes.io/is-default-class=true
  Parameters:            fsType=ext4,type=[[gp2]]
+
  [[Provisioner:]]       kubernetes.io/[[gce-pd]]
 +
  Parameters:            type=pd-standard
 
  AllowVolumeExpansion:  <unset>
 
  AllowVolumeExpansion:  <unset>
 
  MountOptions:          <none>
 
  MountOptions:          <none>
 
  ReclaimPolicy:        Delete
 
  ReclaimPolicy:        Delete
  VolumeBindingMode:    WaitForFirstConsumer
+
  VolumeBindingMode:    Immediate
 
  Events:                <none>
 
  Events:                <none>
  
 +
apiVersion: storage.k8s.io/v1
 +
kind: StorageClass
 +
metadata:
 +
  name: pd-example
 +
provisioner: [[pd.csi]].storage.gke.io
 +
volumeBindingMode: WaitForFirstConsumer
 +
allowVolumeExpansion: true
 +
parameters:
 +
  type: pd-balanced
 +
 +
 +
{{describe my-efs}}
 +
 +
== Errors ==
 +
* <code>[[Play with K8s]]: </code>
 +
* <code>[[kubectl describe]] storageclass -A</code>
 +
* <code>[[No resources found]]</code>
  
 
== Related ==
 
== Related ==
 +
* <code>[[kubectl get pvc]]</code>
 
* <code>[[kubectl describe pvc]]</code>
 
* <code>[[kubectl describe pvc]]</code>
 
* <code>[[kubectl get storageclass]]</code>
 
* <code>[[kubectl get storageclass]]</code>
 +
* [[Amazon EBS CSI driver]]: <code>[[aws-ebs-csi-driver]]</code>
  
 
== See also ==
 
== See also ==
 
* {{EKS storage}}
 
* {{EKS storage}}
 
* {{Kubernetes storage}}
 
* {{Kubernetes storage}}
* {{kubectl}}
 
  
 
[[Category:K8s]]
 
[[Category:K8s]]

Latest revision as of 12:34, 24 October 2024

kubectl describe storageclass ebs-sc
kubectl describe storageclass efs-sc
kubectl describe storageclass gp2
kubectl describe storageclass gp3
kubectl describe storageclass standard

Examples[edit]

kubectl describe storageclass
Name:                  standard
IsDefaultClass:        Yes
Annotations:           storageclass.beta.kubernetes.io/is-default-class=true
Provisioner:       kubernetes.io/gce-pd
Parameters:            type=pd-standard
AllowVolumeExpansion:  <unset>
MountOptions:          <none>
ReclaimPolicy:         Delete
VolumeBindingMode:     Immediate
Events:                <none>
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: pd-example
provisioner: pd.csi.storage.gke.io
volumeBindingMode: WaitForFirstConsumer
allowVolumeExpansion: true
parameters:
  type: pd-balanced


 kubectl describe storageclass my-efs
Name:            my-efs
IsDefaultClass:  No
Annotations:     kubectl.kubernetes.io/last-applied-configuration={"apiVersion":"storage.k8s.io/v1","kind":"StorageClass","metadata":{"annotations":{},"name":"my-efs"},"mountOptions":["tls","iam"],"parameters":{"basePath":"/dynamic_provisioning","directoryPerms":"700","fileSystemId":"fs-00xxxxx","provisioningMode":"efs-ap"},"provisioner":"efs.csi.aws.com","reclaimPolicy":"Retain","volumeBindingMode":"WaitForFirstConsumer"}

Provisioner:           efs.csi.aws.com
Parameters:            basePath=/dynamic_provisioning,directoryPerms=700,fileSystemId=fs-00xxxxxx,provisioningMode=efs-ap
AllowVolumeExpansion:  <unset>
MountOptions:
  tls
  iam
ReclaimPolicy:      Retain
VolumeBindingMode:  WaitForFirstConsumer
Events:             <none>

Errors[edit]

Related[edit]

See also[edit]

Advertising: