[英]“special device nount found” error occured when mounting AWS EBS volume to Kubernetes' pod
[英]Kubernetes - Get EBS Volume of a Pod
使用kubectl
,我將如何確定特定Pod駐留在哪個卷上?
我嘗試用kubectl describe pod [podname]
,我可以得到它所在的Node,但是我找不到關於EBS量的任何信息。
當您執行kubectl describe pod [podname]
您將獲得pod所在的節點。 在輸出節點中,您將獲得屬性Node: ip-192-168-0-219.us-east-2.compute.internal/192.168.0.219
。 但是您僅需復制此部分的ip-192-168-0-219.us-east-2.compute.internal
。 之后,只需使用kubectl describe node [node_id]
描述該節點, kubectl describe node [node_id]
。 您將獲得pod的EBS量。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.