You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/man/man1/kubectl-run.1
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ kubectl run \- Run a particular image on the cluster.
14
14
.SH DESCRIPTION
15
15
.PP
16
16
Create and run a particular image, possibly replicated.
17
-
Creates a replication controller or job to manage the created container(s).
17
+
Creates a deployment or job to manage the created container(s).
18
18
19
19
20
20
.SH OPTIONS
@@ -40,7 +40,7 @@ Creates a replication controller or job to manage the created container(s).
40
40
41
41
.PP
42
42
\fB\-\-generator\fP=""
43
-
The name of the API generator to use. Default is 'run/v1' if \-\-restart=Always, otherwise the default is 'job/v1beta1'.
43
+
The name of the API generator to use. Default is 'deployment/v1beta1' if \-\-restart=Always, otherwise the default is 'job/v1beta1'.
44
44
45
45
.PP
46
46
\fB\-\-hostport\fP=\-1
@@ -98,7 +98,7 @@ Creates a replication controller or job to manage the created container(s).
98
98
99
99
.PP
100
100
\fB\-\-restart\fP="Always"
101
-
The restart policy for this Pod. Legal values [Always, OnFailure, Never]. If set to 'Always' a replication controller is created for this pod, if set to OnFailure or Never, a job is created for this pod and \-\-replicas must be 1. Default 'Always'
101
+
The restart policy for this Pod. Legal values [Always, OnFailure, Never]. If set to 'Always' a deployment is created for this pod, if set to OnFailure or Never, a job is created for this pod and \-\-replicas must be 1. Default 'Always'
102
102
103
103
.PP
104
104
\fB\-\-rm\fP=false
@@ -256,7 +256,7 @@ $ kubectl run nginx \-\-image=nginx \-\-replicas=5
256
256
# Dry run. Print the corresponding API objects without creating them.
257
257
$ kubectl run nginx \-\-image=nginx \-\-dry\-run
258
258
259
-
# Start a single instance of nginx, but overload the spec of the replication controller with a partial set of values parsed from JSON.
259
+
# Start a single instance of nginx, but overload the spec of the deployment with a partial set of values parsed from JSON.
# Start a single instance of busybox and keep it in the foreground, don't restart it if it exits.
@@ -88,7 +88,7 @@ $ kubectl run pi --image=perl --restart=OnFailure -- perl -Mbignum=bpi -wle 'pri
88
88
--dry-run[=false]: If true, only print the object that would be sent, without sending it.
89
89
--env=[]: Environment variables to set in the container
90
90
--expose[=false]: If true, a public, external service is created for the container(s) which are run
91
-
--generator="": The name of the API generator to use. Default is 'run/v1' if --restart=Always, otherwise the default is 'job/v1beta1'.
91
+
--generator="": The name of the API generator to use. Default is 'deployment/v1beta1' if --restart=Always, otherwise the default is 'job/v1beta1'.
92
92
--hostport=-1: The host port mapping for the container port. To demonstrate a single-machine container.
93
93
--image="": The image for the container to run.
94
94
-l, --labels="": Labels to apply to the pod(s).
@@ -102,7 +102,7 @@ $ kubectl run pi --image=perl --restart=OnFailure -- perl -Mbignum=bpi -wle 'pri
102
102
--record[=false]: Record current kubectl command in the resource annotation.
103
103
-r, --replicas=1: Number of replicas to create for this container. Default is 1.
104
104
--requests="": The resource requirement requests for this container. For example, 'cpu=100m,memory=256Mi'
105
-
--restart="Always": The restart policy for this Pod. Legal values [Always, OnFailure, Never]. If set to 'Always' a replication controller is created for this pod, if set to OnFailure or Never, a job is created for this pod and --replicas must be 1. Default 'Always'
105
+
--restart="Always": The restart policy for this Pod. Legal values [Always, OnFailure, Never]. If set to 'Always' a deployment is created for this pod, if set to OnFailure or Never, a job is created for this pod and --replicas must be 1. Default 'Always'
106
106
--rm[=false]: If true, delete resources created in this command for attached containers.
107
107
--save-config[=false]: If true, the configuration of current object will be saved in its annotation. This is useful when you want to perform kubectl apply on this object in the future.
108
108
--service-generator="service/v2": The name of the generator to use for creating a service. Only used if --expose is true
@@ -147,7 +147,7 @@ $ kubectl run pi --image=perl --restart=OnFailure -- perl -Mbignum=bpi -wle 'pri
147
147
148
148
*[kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
149
149
150
-
###### Auto generated by spf13/cobra on 22-Jan-2016
150
+
###### Auto generated by spf13/cobra on 2-Feb-2016
// TODO: Change the default to "deployment/v1beta1" (which is a valid generator) when deployment reaches beta (#15313)
92
-
cmd.Flags().String("generator", "", "The name of the API generator to use. Default is 'run/v1' if --restart=Always, otherwise the default is 'job/v1beta1'.")
91
+
cmd.Flags().String("generator", "", "The name of the API generator to use. Default is 'deployment/v1beta1' if --restart=Always, otherwise the default is 'job/v1beta1'.")
93
92
cmd.Flags().String("image", "", "The image for the container to run.")
94
93
cmd.MarkFlagRequired("image")
95
94
cmd.Flags().IntP("replicas", "r", 1, "Number of replicas to create for this container. Default is 1.")
cmd.Flags().Bool("tty", false, "Allocated a TTY for each container in the pod. Because -t is currently shorthand for --template, -t is not supported for --tty. This shorthand is deprecated and we expect to adopt -t for --tty soon.")
105
104
cmd.Flags().Bool("attach", false, "If true, wait for the Pod to start running, and then attach to the Pod as if 'kubectl attach ...' were called. Default false, unless '-i/--interactive' is set, in which case the default is true.")
106
105
cmd.Flags().Bool("leave-stdin-open", false, "If the pod is started in interactive mode or with stdin, leave stdin open after the first attach completes. By default, stdin will be closed after the first attach completes.")
107
-
cmd.Flags().String("restart", "Always", "The restart policy for this Pod. Legal values [Always, OnFailure, Never]. If set to 'Always' a replication controller is created for this pod, if set to OnFailure or Never, a job is created for this pod and --replicas must be 1. Default 'Always'")
106
+
cmd.Flags().String("restart", "Always", "The restart policy for this Pod. Legal values [Always, OnFailure, Never]. If set to 'Always' a deployment is created for this pod, if set to OnFailure or Never, a job is created for this pod and --replicas must be 1. Default 'Always'")
108
107
cmd.Flags().Bool("command", false, "If true and extra arguments are present, use them as the 'command' field in the container, rather than the 'args' field which is the default.")
109
108
cmd.Flags().String("requests", "", "The resource requirement requests for this container. For example, 'cpu=100m,memory=256Mi'")
110
109
cmd.Flags().String("limits", "", "The resource requirement limits for this container. For example, 'cpu=200m,memory=512Mi'")
0 commit comments