Skip to content

Commit e343b36

Browse files
Update cheatsheet.md
It's wrong to say "Run pod nginx" along with the spec being written to the file as the option --dry-run would make sure that the actual executing is not happening but only the preview is generated The statement would have been correct if the command were something like ... kubectl run nginx --image=nginx -o yaml > pod.yaml
1 parent 4762c8d commit e343b36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/reference/kubectl/cheatsheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ kubectl logs -f my-pod -c my-container # stream pod container logs
336336
kubectl logs -f -l name=myLabel --all-containers # stream all pods logs with label name=myLabel (stdout)
337337
kubectl run -i --tty busybox --image=busybox:1.28 -- sh # Run pod as interactive shell
338338
kubectl run nginx --image=nginx -n mynamespace # Start a single instance of nginx pod in the namespace of mynamespace
339-
kubectl run nginx --image=nginx # Run pod nginx and write its spec into a file called pod.yaml
339+
kubectl run nginx --image=nginx # Generate spec for running pod nginx and write it into a file called pod.yaml
340340
--dry-run=client -o yaml > pod.yaml
341341

342342
kubectl attach my-pod -i # Attach to Running Container

0 commit comments

Comments
 (0)