kubectl describe pv

From wikieduonline
Jump to navigation Jump to search

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"}}'

See also

Advertising: