1KUBERNETES(1)                      Jan 2015                      KUBERNETES(1)
2
3
4

NAME

6       kubectl  create  deployment  -  Create  a deployment with the specified
7       name.
8
9
10

SYNOPSIS

12       kubectl create deployment [OPTIONS]
13
14
15

DESCRIPTION

17       Create a deployment with the specified name.
18
19
20

OPTIONS

22       --allow-missing-template-keys=true
23           If true, ignore any errors in templates when a field or map key  is
24       missing  in  the  template.  Only applies to golang and jsonpath output
25       formats.
26
27
28       --dry-run=false
29           If true, only print the object that would be sent, without  sending
30       it.
31
32
33       --generator=""
34           The name of the API generator to use.
35
36
37       --image=[]
38           Image name to run.
39
40
41       -o, --output=""
42           Output  format. One of: json|yaml|name|template|go-template|go-tem‐
43       plate-file|templatefile|jsonpath|jsonpath-file.
44
45
46       --save-config=false
47           If true, the configuration of current object will be saved  in  its
48       annotation.  Otherwise,  the annotation will be unchanged. This flag is
49       useful when you want to perform kubectl apply on  this  object  in  the
50       future.
51
52
53       --template=""
54           Template  string  or  path  to template file to use when -o=go-tem‐
55       plate, -o=go-template-file. The template format is golang  templates  [
56http://golang.org/pkg/text/template/#pkg-overview⟩].
57
58
59       --validate=true
60           If true, use a schema to validate the input before sending it
61
62
63

OPTIONS INHERITED FROM PARENT COMMANDS

65       --allow-verification-with-non-compliant-keys=false
66           Allow  a  SignatureVerifier  to  use  keys  which  are  technically
67       non-compliant with RFC6962.
68
69
70       --alsologtostderr=false
71           log to standard error as well as files
72
73
74       --application-metrics-count-limit=100
75           Max number of application metrics to store (per container)
76
77
78       --as=""
79           Username to impersonate for the operation
80
81
82       --as-group=[]
83           Group to impersonate for the operation, this flag can  be  repeated
84       to specify multiple groups.
85
86
87       --azure-container-registry-config=""
88           Path  to the file containing Azure container registry configuration
89       information.
90
91
92       --boot-id-file="/proc/sys/kernel/random/boot_id"
93           Comma-separated list of files to check for boot-id. Use  the  first
94       one that exists.
95
96
97       --cache-dir="/builddir/.kube/http-cache"
98           Default HTTP cache directory
99
100
101       --certificate-authority=""
102           Path to a cert file for the certificate authority
103
104
105       --client-certificate=""
106           Path to a client certificate file for TLS
107
108
109       --client-key=""
110           Path to a client key file for TLS
111
112
113       --cloud-provider-gce-lb-src-cidrs=130.211.0.0/22,209.85.152.0/22,209.85.204.0/22,35.191.0.0/16
114           CIDRs opened in GCE firewall for LB traffic proxy  health checks
115
116
117       --cluster=""
118           The name of the kubeconfig cluster to use
119
120
121       --container-hints="/etc/cadvisor/container_hints.json"
122           location of the container hints file
123
124
125       --containerd="unix:///var/run/containerd.sock"
126           containerd endpoint
127
128
129       --context=""
130           The name of the kubeconfig context to use
131
132
133       --default-not-ready-toleration-seconds=300
134           Indicates   the   tolerationSeconds   of   the    toleration    for
135       notReady:NoExecute  that is added by default to every pod that does not
136       already have such a toleration.
137
138
139       --default-unreachable-toleration-seconds=300
140           Indicates the tolerationSeconds  of  the  toleration  for  unreach‐
141       able:NoExecute  that  is  added  by  default to every pod that does not
142       already have such a toleration.
143
144
145       --docker="unix:///var/run/docker.sock"
146           docker endpoint
147
148
149       --docker-env-metadata-whitelist=""
150           a comma-separated list of environment variable keys that  needs  to
151       be collected for docker containers
152
153
154       --docker-only=false
155           Only report docker containers in addition to root stats
156
157
158       --docker-root="/var/lib/docker"
159           DEPRECATED:  docker  root is read from docker info (this is a fall‐
160       back, default: /var/lib/docker)
161
162
163       --docker-tls=false
164           use TLS to connect to docker
165
166
167       --docker-tls-ca="ca.pem"
168           path to trusted CA
169
170
171       --docker-tls-cert="cert.pem"
172           path to client certificate
173
174
175       --docker-tls-key="key.pem"
176           path to private key
177
178
179       --enable-load-reader=false
180           Whether to enable cpu load reader
181
182
183       --event-storage-age-limit="default=0"
184           Max length of time for which to store events (per type). Value is a
185       comma  separated  list  of  key  values, where the keys are event types
186       (e.g.: creation, oom) or "default" and the value is a duration. Default
187       is applied to all non-specified event types
188
189
190       --event-storage-event-limit="default=0"
191           Max  number  of  events to store (per type). Value is a comma sepa‐
192       rated list of key values, where the keys are event  types  (e.g.:  cre‐
193       ation,  oom)  or  "default"  and  the  value  is an integer. Default is
194       applied to all non-specified event types
195
196
197       --global-housekeeping-interval=1m0s
198           Interval between global housekeepings
199
200
201       --google-json-key=""
202           The Google Cloud Platform Service  Account  JSON  Key  to  use  for
203       authentication.
204
205
206       --housekeeping-interval=10s
207           Interval between container housekeepings
208
209
210       --insecure-skip-tls-verify=false
211           If true, the server's certificate will not be checked for validity.
212       This will make your HTTPS connections insecure
213
214
215       --kubeconfig=""
216           Path to the kubeconfig file to use for CLI requests.
217
218
219       --log-backtrace-at=:0
220           when logging hits line file:N, emit a stack trace
221
222
223       --log-cadvisor-usage=false
224           Whether to log the usage of the cAdvisor container
225
226
227       --log-dir=""
228           If non-empty, write log files in this directory
229
230
231       --log-flush-frequency=5s
232           Maximum number of seconds between log flushes
233
234
235       --logtostderr=true
236           log to standard error instead of files
237
238
239       --machine-id-file="/etc/machine-id,/var/lib/dbus/machine-id"
240           Comma-separated list of files to  check  for  machine-id.  Use  the
241       first one that exists.
242
243
244       --match-server-version=false
245           Require server version to match client version
246
247
248       --mesos-agent="127.0.0.1:5051"
249           Mesos agent address
250
251
252       --mesos-agent-timeout=10s
253           Mesos agent timeout
254
255
256       -n, --namespace=""
257           If present, the namespace scope for this CLI request
258
259
260       --request-timeout="0"
261           The  length  of  time  to  wait before giving up on a single server
262       request. Non-zero values should contain a corresponding time unit (e.g.
263       1s, 2m, 3h). A value of zero means don't timeout requests.
264
265
266       -s, --server=""
267           The address and port of the Kubernetes API server
268
269
270       --stderrthreshold=2
271           logs at or above this threshold go to stderr
272
273
274       --storage-driver-buffer-duration=1m0s
275           Writes  in  the  storage driver will be buffered for this duration,
276       and committed to the non memory backends as a single transaction
277
278
279       --storage-driver-db="cadvisor"
280           database name
281
282
283       --storage-driver-host="localhost:8086"
284           database host:port
285
286
287       --storage-driver-password="root"
288           database password
289
290
291       --storage-driver-secure=false
292           use secure connection with database
293
294
295       --storage-driver-table="stats"
296           table name
297
298
299       --storage-driver-user="root"
300           database username
301
302
303       --token=""
304           Bearer token for authentication to the API server
305
306
307       --user=""
308           The name of the kubeconfig user to use
309
310
311       -v, --v=0
312           log level for V logs
313
314
315       --version=false
316           Print version information and quit
317
318
319       --vmodule=
320           comma-separated list of pattern=N settings for  file-filtered  log‐
321       ging
322
323
324

EXAMPLE

326                # Create a new deployment named my-dep that runs the busybox image.
327                kubectl create deployment my-dep --image=busybox
328
329
330
331

SEE ALSO

333       kubectl-create(1),
334
335
336

HISTORY

338       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
339       com) based on the kubernetes source material, but hopefully  they  have
340       been automatically generated since!
341
342
343
344Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum