GarbageYard

pv_and_pvc_details

Sep 7th, 2017
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. [root@cent-gluster-workstation ~]# kubectl describe pv gluster-vol1
  2. Error from server (NotFound): persistentvolumes "gluster-vol1" not found
  3.  
  4.  
  5. [root@cent-gluster-workstation ~]# kubectl describe pvc gluster-dyn-pvc
  6. Name: gluster-dyn-pvc
  7. Namespace: default
  8. StorageClass: gluster-dyn
  9. Status: Bound
  10. Volume: pvc-9d2c54c9-91fa-11e7-a8bd-023b4cbc4fdd
  11. Labels: <none>
  12. Annotations: pv.kubernetes.io/bind-completed=yes
  13. pv.kubernetes.io/bound-by-controller=yes
  14. volume.beta.kubernetes.io/storage-class=gluster-dyn
  15. volume.beta.kubernetes.io/storage-provisioner=kubernetes.io/glusterfs
  16. Capacity: 3Gi
  17. Access Modes: RWX
  18. Events: <none>
  19.  
  20.  
  21. Also, from Kubernetes Dashboard, under 'Persistent Volumes', there is an entry for 'pvc-9d2c54c9-91fa-11e7-a8bd-023b4cbc4fdd'
  22.  
  23. [root@cent-gluster-workstation ~]# kubectl describe pv pvc-9d2c54c9-91fa-11e7-a8bd-023b4cbc4fdd
  24. Name: pvc-9d2c54c9-91fa-11e7-a8bd-023b4cbc4fdd
  25. Labels: <none>
  26. Annotations: Description=Gluster: Dynamically provisioned PV
  27. gluster.org/type=file
  28. kubernetes.io/createdby=heketi-dynamic-provisioner
  29. pv.beta.kubernetes.io/gid=2000
  30. pv.kubernetes.io/bound-by-controller=yes
  31. pv.kubernetes.io/provisioned-by=kubernetes.io/glusterfs
  32. volume.beta.kubernetes.io/mount-options=auto_unmount
  33. StorageClass: gluster-dyn
  34. Status: Bound
  35. Claim: default/gluster-dyn-pvc
  36. Reclaim Policy: Delete
  37. Access Modes: RWX
  38. Capacity: 3Gi
  39. Message:
  40. Source:
  41. Type: Glusterfs (a Glusterfs mount on the host that shares a pod's lifetime)
  42. EndpointsName: glusterfs-dynamic-gluster-dyn-pvc
  43. Path: vol_24a6778f7cd18eebe20fa9254a0c8b3a
  44. ReadOnly: false
  45. Events: <none>
  46.  
  47.  
  48. [root@cent-gluster-workstation ~]# kubectl get pvc gluster-dyn-pvc
  49. NAME STATUS VOLUME CAPACITY ACCESSMODES STORAGECLASS AGE
  50. gluster-dyn-pvc Bound pvc-9d2c54c9-91fa-11e7-a8bd-023b4cbc4fdd 3Gi RWX gluster-dyn 3d
Add Comment
Please, Sign In to add comment