增
kubectl create -f test.yaml
删
kubectl delete pod nginx 或 kubectl delete -f test.yaml
改
kubectl edit pod nginx
查
kubectl get pod --show-labels -o wide
kubectl describe pod nginx
本文详细介绍如何使用 kubectl 对 Kubernetes 中的 Pod 进行创建、删除、修改及查询操作,包括具体的命令语法和应用场景,为 Kubernetes 用户提供实用的操作手册。
增
kubectl create -f test.yaml
删
kubectl delete pod nginx 或 kubectl delete -f test.yaml
改
kubectl edit pod nginx
查
kubectl get pod --show-labels -o wide
kubectl describe pod nginx
5717
1061
4875
465
1358

被折叠的 条评论
为什么被折叠?