通过describe命令学习Kubernetes的pod属性详解
我们可以首先使用kubectl get pods命令得到pod列表,比如我们想研究pod nginx-storage-pod的明细: 使用命令kubectl describe pod nginx-storage-pod > nginx-storage-pod.yaml, 将describe命令的输出重定向到一个yaml文件里。用vi打开这个yaml文件: pod的所有属性可以从这个yaml文件里学习: node:shoot--k8s-train--shacw46-worker-prvfv-z1-7844dc6744-ghd5m/10.250.0.6 表明pod所在的node,这个node一定是命令kubectl get node返回的结果之一: Image:代表该pod是基于哪一个docker image创建的。 Mount:该pod使