Difference between revisions of "Kubectl get pvc"

From wikieduonline
Jump to navigation Jump to search
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
  
 +
* <code>[[kubectl get pvc]]</code>
 +
* <code>[[kubectl get pvc -o yaml]]</code>
 +
* <code>[[kubectl get pvc -A]]</code>
 +
 +
* [[STATUS]]: <code>[[Bound]], [[Lost]], [[Pending]]</code>
 +
 +
== Example ==
 
  [[kubectl get]] pvc
 
  [[kubectl get]] pvc
  NAME          STATUS  VOLUME                                    CAPACITY  ACCESS MODES  [[STORAGECLASS]]  AGE
+
  NAME          [[STATUS]]   VOLUME                                    CAPACITY  ACCESS MODES  [[STORAGECLASS]]  AGE
  mygrafanapvc  Bound    pvc-263be894-08de-41ac-b5ba-8fa7e2bfedba  10Gi      RWO            standard      12m
+
  mygrafanapvc  [[Bound]]   pvc-263be894-08de-41ac-b5ba-8fa7e2bfedba  10Gi      [[RWO]]           standard      12m
  
  
* [[kubectl get pvc -o yaml]]
+
NAME            STATUS  VOLUME  CAPACITY  ACCESS MODES  STORAGECLASS  AGE
* [[kubectl get pvc -A]]
+
your.name        Lost                                        efs            3m19s
  
 +
* [[STORAGECLASS]]: <code>standard, [[gp2]], [[gp3]], [[efs]], [[aws-efs-shared-refactor]]</code>
  
  
Line 35: Line 43:
 
== Activities ==
 
== Activities ==
 
* [[Kubernetes PVC resize: kubectl patch pvc]]
 
* [[Kubernetes PVC resize: kubectl patch pvc]]
 +
 +
== Errors ==
 +
* <code>[[running PreBind plugin "VolumeBinding": binding volumes: timed out waiting for the condition]]</code>
  
 
== Related terms ==
 
== Related terms ==
Line 44: Line 55:
 
* <code>[[kubectl get volumesnapshot]]</code>
 
* <code>[[kubectl get volumesnapshot]]</code>
 
* <code>[[kubectl get storageclass]]</code>
 
* <code>[[kubectl get storageclass]]</code>
* <code>[[running PreBind plugin "VolumeBinding": binding volumes: timed out waiting for the condition]]</code>
 
  
 
== See also ==
 
== See also ==
 +
* {{kubectl get pvc}}
 
* {{PVC}}
 
* {{PVC}}
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Latest revision as of 12:27, 15 January 2024

Example[edit]

kubectl get pvc
NAME           STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
mygrafanapvc   Bound    pvc-263be894-08de-41ac-b5ba-8fa7e2bfedba   10Gi       RWO            standard       12m


NAME            STATUS   VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS   AGE
your.name        Lost                                        efs            3m19s


kubectl get pvc
NAME                STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
data-my-mariadb-0   Bound    pvc-a4651095-b218-4625-86eb-bc5e335dd200   8Gi        RWO            efs            42h

EKS[edit]

kubectl get pvc
NAME                STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
data-my-mariadb-0   Bound    pvc-a4651095-b218-4625-86eb-bc5e335dd200   8Gi        RWO            gp2            22h
grafana             Bound    pvc-e963fe39-b029-4b26-98ca-c514a3138345   10Gi       RWO            gp3            4h30m
kubectl get pvc
NAME                     STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
elasticsearch-master-0   Bound    pvc-db941c9a-204a-4e66-aa7b-bc5e335dd200   30Gi       RWO            gp2            123m
elasticsearch-master-1   Bound    pvc-4c3f5dfa-96d9-4817-9135-c514a3138345   30Gi       RWO            gp2            123m


kubectl get pvc
NAME                        STATUS    VOLUME   CAPACITY   ACCESS MODES   STORAGECLASS   AGE
myprometheus-alertmanager   Pending                                      gp2            58m
myprometheus-server         Pending                                      gp2            58m

Activities[edit]

Errors[edit]

Related terms[edit]

See also[edit]

Advertising: