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