mirror of https://github.com/k3s-io/k3s
commit
3f3918048a
|
@ -244,7 +244,7 @@ $ kubectl run nginx \-\-image=nginx \-\-dry\-run
|
||||||
$ kubectl run nginx \-\-image=nginx \-\-overrides='{ "apiVersion": "v1", "spec": { ... } }'
|
$ kubectl run nginx \-\-image=nginx \-\-overrides='{ "apiVersion": "v1", "spec": { ... } }'
|
||||||
|
|
||||||
# Start a single instance of nginx and keep it in the foreground, don't restart it if it exits.
|
# Start a single instance of nginx and keep it in the foreground, don't restart it if it exits.
|
||||||
$ kubectl run \-i \-tty nginx \-\-image=nginx \-\-restart=Never
|
$ kubectl run \-i \-\-tty nginx \-\-image=nginx \-\-restart=Never
|
||||||
|
|
||||||
# Start the nginx container using the default command, but use custom arguments (arg1 .. argN) for that command.
|
# Start the nginx container using the default command, but use custom arguments (arg1 .. argN) for that command.
|
||||||
$ kubectl run nginx \-\-image=nginx \-\- <arg1> <arg2> ... <argN>
|
$ kubectl run nginx \-\-image=nginx \-\- <arg1> <arg2> ... <argN>
|
||||||
|
|
|
@ -67,7 +67,7 @@ $ kubectl run nginx --image=nginx --dry-run
|
||||||
$ kubectl run nginx --image=nginx --overrides='{ "apiVersion": "v1", "spec": { ... } }'
|
$ kubectl run nginx --image=nginx --overrides='{ "apiVersion": "v1", "spec": { ... } }'
|
||||||
|
|
||||||
# Start a single instance of nginx and keep it in the foreground, don't restart it if it exits.
|
# Start a single instance of nginx and keep it in the foreground, don't restart it if it exits.
|
||||||
$ kubectl run -i -tty nginx --image=nginx --restart=Never
|
$ kubectl run -i --tty nginx --image=nginx --restart=Never
|
||||||
|
|
||||||
# Start the nginx container using the default command, but use custom arguments (arg1 .. argN) for that command.
|
# Start the nginx container using the default command, but use custom arguments (arg1 .. argN) for that command.
|
||||||
$ kubectl run nginx --image=nginx -- <arg1> <arg2> ... <argN>
|
$ kubectl run nginx --image=nginx -- <arg1> <arg2> ... <argN>
|
||||||
|
@ -139,7 +139,7 @@ $ kubectl run nginx --image=nginx --command -- <cmd> <arg1> ... <argN>
|
||||||
|
|
||||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra on 20-Oct-2015
|
###### Auto generated by spf13/cobra on 30-Oct-2015
|
||||||
|
|
||||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
|
||||||
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_run.md?pixel)]()
|
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/user-guide/kubectl/kubectl_run.md?pixel)]()
|
||||||
|
|
|
@ -54,7 +54,7 @@ $ kubectl run nginx --image=nginx --dry-run
|
||||||
$ kubectl run nginx --image=nginx --overrides='{ "apiVersion": "v1", "spec": { ... } }'
|
$ kubectl run nginx --image=nginx --overrides='{ "apiVersion": "v1", "spec": { ... } }'
|
||||||
|
|
||||||
# Start a single instance of nginx and keep it in the foreground, don't restart it if it exits.
|
# Start a single instance of nginx and keep it in the foreground, don't restart it if it exits.
|
||||||
$ kubectl run -i -tty nginx --image=nginx --restart=Never
|
$ kubectl run -i --tty nginx --image=nginx --restart=Never
|
||||||
|
|
||||||
# Start the nginx container using the default command, but use custom arguments (arg1 .. argN) for that command.
|
# Start the nginx container using the default command, but use custom arguments (arg1 .. argN) for that command.
|
||||||
$ kubectl run nginx --image=nginx -- <arg1> <arg2> ... <argN>
|
$ kubectl run nginx --image=nginx -- <arg1> <arg2> ... <argN>
|
||||||
|
|
Loading…
Reference in New Issue