Fixing kubectl cheatsheet run command comment to be more accurate (#29879)

* Fixing kubectl cheatsheet run command comment to be more accurate

* remove new line
This commit is contained in:
prabhsimransingh
2021-12-05 15:10:32 -08:00
committed by GitHub
parent 6ce3307738
commit 5f369513e0
@@ -311,8 +311,7 @@ kubectl logs -f my-pod # stream pod logs (stdout)
kubectl logs -f my-pod -c my-container # stream pod container logs (stdout, multi-container case)
kubectl logs -f -l name=myLabel --all-containers # stream all pods logs with label name=myLabel (stdout)
kubectl run -i --tty busybox --image=busybox -- sh # Run pod as interactive shell
kubectl run nginx --image=nginx -n
mynamespace # Run pod nginx in a specific namespace
kubectl run nginx --image=nginx -n mynamespace # Start a single instance of nginx pod in the namespace of mynamespace
kubectl run nginx --image=nginx # Run pod nginx and write its spec into a file called pod.yaml
--dry-run=client -o yaml > pod.yaml