简体   繁体   中英

Kubernetes - Get EBS Volume of a Pod

Using kubectl , how would I go about identifying what volume a specific pod resides on?

I tried kubectl describe pod [podname] and I can get the Node that its on but I'm not able to find anything regarding the EBS volume.

When you do kubectl describe pod [podname] you will get the node where your pod is sitting. In output the node you will get in attribute Node: ip-192-168-0-219.us-east-2.compute.internal/192.168.0.219 . But you have to copy only ip-192-168-0-219.us-east-2.compute.internal this part. After that just describe that node using kubectl describe node [node_id] . You will get the EBS volume of pod.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM