Difference between revisions of "Kubectl describe pv"

From wikieduonline
Jump to navigation Jump to search
Line 34: Line 34:
 
== Related ==
 
== Related ==
 
* <code>[[kubectl patch pv]] <your-pv-name> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'</code>
 
* <code>[[kubectl patch pv]] <your-pv-name> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'</code>
 +
[[kubernetes.io/gce-pd]]
  
 
== See also ==
 
== See also ==

Revision as of 10:07, 7 November 2022

kubectl describe pv 
kubectl describe pv | grep Claim


kubectl describe pv pvc-21435445f2-5484-4e68-93a2-1234567
Name:              pvc-21435445f2-5484-4e68-93a2-1234567
Labels:            failure-domain.beta.kubernetes.io/region=europe-west3
                   failure-domain.beta.kubernetes.io/zone=europe-west3-b
Annotations:       kubernetes.io/createdby: gce-pd-dynamic-provisioner
                   pv.kubernetes.io/bound-by-controller: yes
                   pv.kubernetes.io/provisioned-by: kubernetes.io/gce-pd
Finalizers:        [kubernetes.io/pv-protection]
StorageClass:      standard
Status:            Bound
Claim:             non-prod/elasticsearch-master-elasticsearch-master-0
Reclaim Policy:    Delete
Access Modes:      RWO
VolumeMode:        Filesystem
Capacity:          30Gi
Node Affinity:
  Required Terms:
    Term 0:        failure-domain.beta.kubernetes.io/zone in [europe-west3-b]
                   failure-domain.beta.kubernetes.io/region in [europe-west3]
Message:
Source:
    Type:       GCEPersistentDisk (a Persistent Disk resource in Google Compute Engine)
    PDName:     gke-efi-2838372d-dynam-pvc-21435445f2-5484-4e68-93a2-1234567
    FSType:     ext4
    Partition:  0
    ReadOnly:   false
Events:         <none>

Related

  • kubectl patch pv <your-pv-name> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
kubernetes.io/gce-pd

See also

Advertising: