Difference between revisions of "Kubectl describe pv"
Jump to navigation
Jump to search
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | kubectl describe pv | + | [[kubectl describe]] pv |
kubectl describe pv | grep [[Claim]] | kubectl describe pv | grep [[Claim]] | ||
kubectl describe pv | Type | kubectl describe pv | Type | ||
Line 12: | Line 12: | ||
Annotations: kubernetes.io/createdby: [[gce-pd]]-dynamic-provisioner | Annotations: kubernetes.io/createdby: [[gce-pd]]-dynamic-provisioner | ||
pv.kubernetes.io/bound-by-controller: yes | pv.kubernetes.io/bound-by-controller: yes | ||
− | pv.kubernetes.io/provisioned-by: kubernetes.io/ | + | pv.kubernetes.io/provisioned-by: [[kubernetes.io/gce-pd]] |
Finalizers: [kubernetes.io/pv-protection] | Finalizers: [kubernetes.io/pv-protection] | ||
StorageClass: standard | StorageClass: standard | ||
Line 18: | Line 18: | ||
Claim: non-prod/elasticsearch-master-elasticsearch-master-0 | Claim: non-prod/elasticsearch-master-elasticsearch-master-0 | ||
[[Reclaim Policy]]: Delete | [[Reclaim Policy]]: Delete | ||
− | Access Modes: RWO | + | [[Access Modes]]: RWO |
VolumeMode: Filesystem | VolumeMode: Filesystem | ||
− | Capacity: 30Gi | + | [[Capacity:]] 30Gi |
[[Node Affinity]]: | [[Node Affinity]]: | ||
Required Terms: | Required Terms: | ||
Line 40: | Line 40: | ||
Labels: <none> | Labels: <none> | ||
[[Annotations:]] hostPathProvisionerIdentity: 93dae6c4-31b6-4a45-be83-e247ad53145e | [[Annotations:]] hostPathProvisionerIdentity: 93dae6c4-31b6-4a45-be83-e247ad53145e | ||
− | pv.kubernetes.io/provisioned-by: k8s.io/minikube-hostpath | + | [[pv.kubernetes.io/provisioned-by]]: [[k8s.io/minikube-hostpath]] |
[[Finalizers:]] [kubernetes.io/pv-protection] | [[Finalizers:]] [kubernetes.io/pv-protection] | ||
[[StorageClass:]] standard | [[StorageClass:]] standard | ||
Line 46: | Line 46: | ||
Claim: default/grafana | Claim: default/grafana | ||
Reclaim Policy: Delete | Reclaim Policy: Delete | ||
− | [[Access Modes:]] RWO | + | [[Access Modes:]] [[RWO]] |
− | VolumeMode: Filesystem | + | [[VolumeMode]]: Filesystem |
− | Capacity: 10Gi | + | [[Capacity]]: 10Gi |
Node Affinity: <none> | Node Affinity: <none> | ||
Message: | Message: | ||
Line 59: | Line 59: | ||
== 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> | ||
− | + | * <code>[[kubernetes.io/gce-pd]]</code> | |
+ | * <code>[[kubectl get pv]]</code> | ||
+ | * [[efs]] | ||
== See also == | == See also == |
Latest revision as of 12:21, 12 January 2024
kubectl describe pv kubectl describe pv | grep Claim kubectl describe pv | Type kubectl describe pv | Name
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>
Grafana minikube[edit]
kubectl describe pv pvc-90a3a4c1-d42d-411c-b157-f02d12f3e208 Name: pvc-90a3a4c1-d42d-411c-b157-f02d12f3e208 Labels: <none> Annotations: hostPathProvisionerIdentity: 93dae6c4-31b6-4a45-be83-e247ad53145e pv.kubernetes.io/provisioned-by: k8s.io/minikube-hostpath Finalizers: [kubernetes.io/pv-protection] StorageClass: standard Status: Bound Claim: default/grafana Reclaim Policy: Delete Access Modes: RWO VolumeMode: Filesystem Capacity: 10Gi Node Affinity: <none> Message: Source: Type: HostPath (bare host directory volume) Path: /tmp/hostpath-provisioner/default/grafana HostPathType: Events: <none>
Related[edit]
kubectl patch pv <your-pv-name> -p '{"spec":{"persistentVolumeReclaimPolicy":"Retain"}}'
kubernetes.io/gce-pd
kubectl get pv
- efs
See also[edit]
kubectl describe [ nodes | pods | deployment | pv | pvc | secrets | configmaps | networkpolicy | job ]
- Kubernetes Persistent Volume Claim (PVC) (
kind: PersistentVolumeClaim
), Kubernetes Persistent volumes (PV)(kind: PersistentVolume)
,kubectl describe pvc, kubectl get pvc
, ClaimLost, ProvisioningSucceeded, PV access control
Advertising: