File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
content/en/docs/reference/kubectl Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -290,10 +290,10 @@ kubectl logs -f my-pod # stream pod logs (stdout)
290
290
kubectl logs -f my-pod -c my-container # stream pod container logs (stdout, multi-container case)
291
291
kubectl logs -f -l name=myLabel --all-containers # stream all pods logs with label name=myLabel (stdout)
292
292
kubectl run -i --tty busybox --image=busybox -- sh # Run pod as interactive shell
293
- kubectl run nginx --image=nginx --restart=Never - n
293
+ kubectl run nginx --image=nginx -n
294
294
mynamespace # Run pod nginx in a specific namespace
295
- kubectl run nginx --image=nginx --restart=Never # Run pod nginx and write its spec into a file called pod.yaml
296
- --dry-run -o yaml > pod.yaml
295
+ kubectl run nginx --image=nginx # Run pod nginx and write its spec into a file called pod.yaml
296
+ --dry-run=client -o yaml > pod.yaml
297
297
298
298
kubectl attach my-pod -i # Attach to Running Container
299
299
kubectl port-forward my-pod 5000:6000 # Listen on port 5000 on the local machine and forward to port 6000 on my-pod
You can’t perform that action at this time.
0 commit comments