Removed uninitialized flag reference from kubectl cheetsheet (#16485)

This commit is contained in:
Deepika Pandhi 2019-09-22 20:21:22 -07:00 committed by Kubernetes Prow Robot
parent e14782f703
commit 3eb7612e88
1 changed files with 2 additions and 3 deletions

View File

@ -145,7 +145,7 @@ kubectl get services # List all services in the namespa
kubectl get pods --all-namespaces # List all pods in all namespaces kubectl get pods --all-namespaces # List all pods in all namespaces
kubectl get pods -o wide # List all pods in the namespace, with more details kubectl get pods -o wide # List all pods in the namespace, with more details
kubectl get deployment my-dep # List a particular deployment kubectl get deployment my-dep # List a particular deployment
kubectl get pods --include-uninitialized # List all pods in the namespace, including uninitialized ones kubectl get pods # List all pods in the namespace
kubectl get pod my-pod -o yaml # Get a pod's YAML kubectl get pod my-pod -o yaml # Get a pod's YAML
kubectl get pod my-pod -o yaml --export # Get a pod's YAML without cluster specific information kubectl get pod my-pod -o yaml --export # Get a pod's YAML without cluster specific information
@ -274,8 +274,7 @@ kubectl scale --replicas=5 rc/foo rc/bar rc/baz # Scale multip
kubectl delete -f ./pod.json # Delete a pod using the type and name specified in pod.json kubectl delete -f ./pod.json # Delete a pod using the type and name specified in pod.json
kubectl delete pod,service baz foo # Delete pods and services with same names "baz" and "foo" kubectl delete pod,service baz foo # Delete pods and services with same names "baz" and "foo"
kubectl delete pods,services -l name=myLabel # Delete pods and services with label name=myLabel kubectl delete pods,services -l name=myLabel # Delete pods and services with label name=myLabel
kubectl delete pods,services -l name=myLabel --include-uninitialized # Delete pods and services, including uninitialized ones, with label name=myLabel kubectl -n my-ns delete po,svc --all # Delete all pods and services in namespace my-ns,
kubectl -n my-ns delete po,svc --all # Delete all pods and services, including uninitialized ones, in namespace my-ns,
# Delete all pods matching the awk pattern1 or pattern2 # Delete all pods matching the awk pattern1 or pattern2
kubectl get pods -n mynamespace --no-headers=true | awk '/pattern1|pattern2/{print $1}' | xargs kubectl delete -n mynamespace pod kubectl get pods -n mynamespace --no-headers=true | awk '/pattern1|pattern2/{print $1}' | xargs kubectl delete -n mynamespace pod
``` ```