kubectl apply -f pod1.yaml
kubectl get pod
kubectl exec -it pod1 -c testpod-dev -- /bin/bash //pod1是本实验的Pod名称,testpod-dev是本实验pod1中的容器名称,该docker容器部署了nginx
查看pod 详情
查看pod日志:
标签:kubectl,马哥,testpod,dev,-----,pod,pod1 From: https://www.cnblogs.com/vzhangxk/p/17292578.html