增
kubectl apply -f pod.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
[liwm@rmaster01 ~]$ kubectl apply -f pod.yaml
pod/memory-demo created
[liwm@rmaster01 ~]$ kubectl get pod
NAME READY STATUS RESTARTS AGE
memory-demo 1/1 Running 0 48s