1KUBERNETES(1)(kubernetes)                            KUBERNETES(1)(kubernetes)
2
3
4
5Eric Paris Jan 2015
6
7

NAME

9       kubectl create quota - Create a quota with the specified name.
10
11
12

SYNOPSIS

14       kubectl create quota [OPTIONS]
15
16
17

DESCRIPTION

19       Create  a  resourcequota  with  the specified name, hard limits and op‐
20       tional scopes
21
22
23

OPTIONS

25       --allow-missing-template-keys=true      If true, ignore any  errors  in
26       templates  when a field or map key is missing in the template. Only ap‐
27       plies to golang and jsonpath output formats.
28
29
30       --dry-run="none"      Must be "none", "server", or "client". If  client
31       strategy, only print the object that would be sent, without sending it.
32       If server strategy, submit server-side request without  persisting  the
33       resource.
34
35
36       --field-manager="kubectl-create"      Name of the manager used to track
37       field ownership.
38
39
40       --hard=""      A comma-delimited set of  resource=quantity  pairs  that
41       define a hard limit.
42
43
44       -o,  --output=""       Output  format.  One  of: json|yaml|name|go-tem‐
45       plate|go-template-file|template|templatefile|jsonpath|json‐
46       path-as-json|jsonpath-file.
47
48
49       --save-config=false       If  true, the configuration of current object
50       will be saved in its annotation. Otherwise, the annotation will be  un‐
51       changed.  This flag is useful when you want to perform kubectl apply on
52       this object in the future.
53
54
55       --scopes=""      A comma-delimited set of quota scopes  that  must  all
56       match each object tracked by the quota.
57
58
59       --template=""      Template string or path to template file to use when
60       -o=go-template, -o=go-template-file. The template format is golang tem‐
61       plates [http://golang.org/pkg/text/template/#pkg-overview].
62
63
64       --validate=true      If true, use a schema to validate the input before
65       sending it
66
67
68

OPTIONS INHERITED FROM PARENT COMMANDS

70       --add-dir-header=false      If true, adds the  file  directory  to  the
71       header of the log messages
72
73
74       --alsologtostderr=false      log to standard error as well as files
75
76
77       --application-metrics-count-limit=100       Max  number  of application
78       metrics to store (per container)
79
80
81       --as=""      Username to impersonate for the operation
82
83
84       --as-group=[]      Group to impersonate for the  operation,  this  flag
85       can be repeated to specify multiple groups.
86
87
88       --azure-container-registry-config=""       Path  to the file containing
89       Azure container registry configuration information.
90
91
92       --boot-id-file="/proc/sys/kernel/random/boot_id"        Comma-separated
93       list of files to check for boot-id. Use the first one that exists.
94
95
96       --cache-dir="/builddir/.kube/cache"      Default cache directory
97
98
99       --certificate-authority=""      Path to a cert file for the certificate
100       authority
101
102
103       --client-certificate=""      Path to a client certificate file for TLS
104
105
106       --client-key=""      Path to a client key file for TLS
107
108
109       --cloud-provider-gce-l7lb-src-cidrs=130.211.0.0/22,35.191.0.0/16
110            CIDRs  opened  in  GCE  firewall  for  L7 LB traffic proxy  health
111       checks
112
113
114       --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
115            CIDRs  opened  in  GCE  firewall  for  L4 LB traffic proxy  health
116       checks
117
118
119       --cluster=""      The name of the kubeconfig cluster to use
120
121
122       --container-hints="/etc/cadvisor/container_hints.json"      location of
123       the container hints file
124
125
126       --containerd="/run/containerd/containerd.sock"      containerd endpoint
127
128
129       --containerd-namespace="k8s.io"      containerd namespace
130
131
132       --context=""      The name of the kubeconfig context to use
133
134
135       --default-not-ready-toleration-seconds=300       Indicates  the tolera‐
136       tionSeconds of the toleration for notReady:NoExecute that is  added  by
137       default to every pod that does not already have such a toleration.
138
139
140       --default-unreachable-toleration-seconds=300      Indicates the tolera‐
141       tionSeconds of the toleration for unreachable:NoExecute that  is  added
142       by default to every pod that does not already have such a toleration.
143
144
145       --disable-root-cgroup-stats=false       Disable  collecting root Cgroup
146       stats
147
148
149       --docker="unix:///var/run/docker.sock"      docker endpoint
150
151
152       --docker-env-metadata-whitelist=""      a comma-separated list of envi‐
153       ronment  variable  keys  matched with specified prefix that needs to be
154       collected for docker containers
155
156
157       --docker-only=false      Only report docker containers in  addition  to
158       root stats
159
160
161       --docker-root="/var/lib/docker"       DEPRECATED:  docker  root is read
162       from docker info (this is a fallback, default: /var/lib/docker)
163
164
165       --docker-tls=false      use TLS to connect to docker
166
167
168       --docker-tls-ca="ca.pem"      path to trusted CA
169
170
171       --docker-tls-cert="cert.pem"      path to client certificate
172
173
174       --docker-tls-key="key.pem"      path to private key
175
176
177       --enable-load-reader=false      Whether to enable cpu load reader
178
179
180       --event-storage-age-limit="default=0"      Max length of time for which
181       to store events (per type). Value is a comma separated list of key val‐
182       ues, where the keys are event types (e.g.: creation, oom) or  "default"
183       and  the  value  is a duration. Default is applied to all non-specified
184       event types
185
186
187       --event-storage-event-limit="default=0"      Max number  of  events  to
188       store  (per type). Value is a comma separated list of key values, where
189       the keys are event types (e.g.: creation, oom)  or  "default"  and  the
190       value  is  an  integer.  Default  is applied to all non-specified event
191       types
192
193
194       --global-housekeeping-interval=1m0s      Interval between global house‐
195       keepings
196
197
198       --housekeeping-interval=10s       Interval between container housekeep‐
199       ings
200
201
202       --insecure-skip-tls-verify=false      If true, the server's certificate
203       will not be checked for validity. This will make your HTTPS connections
204       insecure
205
206
207       --kubeconfig=""      Path to the kubeconfig file to  use  for  CLI  re‐
208       quests.
209
210
211       --log-backtrace-at=:0       when logging hits line file:N, emit a stack
212       trace
213
214
215       --log-cadvisor-usage=false      Whether to log the usage of the  cAdvi‐
216       sor container
217
218
219       --log-dir=""      If non-empty, write log files in this directory
220
221
222       --log-file=""      If non-empty, use this log file
223
224
225       --log-file-max-size=1800       Defines  the maximum size a log file can
226       grow to. Unit is megabytes. If the value is 0, the maximum file size is
227       unlimited.
228
229
230       --log-flush-frequency=5s       Maximum  number  of  seconds between log
231       flushes
232
233
234       --logtostderr=true      log to standard error instead of files
235
236
237       --machine-id-file="/etc/machine-id,/var/lib/dbus/machine-id"
238            Comma-separated  list  of  files  to check for machine-id. Use the
239       first one that exists.
240
241
242       --match-server-version=false       Require  server  version  to   match
243       client version
244
245
246       -n,  --namespace=""       If  present, the namespace scope for this CLI
247       request
248
249
250       --one-output=false      If true, only write logs to their native sever‐
251       ity level (vs also writing to each lower severity level
252
253
254       --password=""      Password for basic authentication to the API server
255
256
257       --profile="none"         Name   of   profile   to   capture.   One   of
258       (none|cpu|heap|goroutine|threadcreate|block|mutex)
259
260
261       --profile-output="profile.pprof"      Name of the  file  to  write  the
262       profile to
263
264
265       --referenced-reset-interval=0       Reset interval for referenced bytes
266       (container_referenced_bytes metric), number of measurement cycles after
267       which  referenced  bytes  are cleared, if set to 0 referenced bytes are
268       never cleared (default: 0)
269
270
271       --request-timeout="0"      The length of time to wait before giving  up
272       on  a  single  server  request. Non-zero values should contain a corre‐
273       sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
274       out requests.
275
276
277       -s, --server=""      The address and port of the Kubernetes API server
278
279
280       --skip-headers=false       If  true,  avoid  header prefixes in the log
281       messages
282
283
284       --skip-log-headers=false      If true, avoid headers when  opening  log
285       files
286
287
288       --stderrthreshold=2      logs at or above this threshold go to stderr
289
290
291       --storage-driver-buffer-duration=1m0s      Writes in the storage driver
292       will be buffered for this duration, and committed  to  the  non  memory
293       backends as a single transaction
294
295
296       --storage-driver-db="cadvisor"      database name
297
298
299       --storage-driver-host="localhost:8086"      database host:port
300
301
302       --storage-driver-password="root"      database password
303
304
305       --storage-driver-secure=false      use secure connection with database
306
307
308       --storage-driver-table="stats"      table name
309
310
311       --storage-driver-user="root"      database username
312
313
314       --tls-server-name=""       Server  name  to  use for server certificate
315       validation. If it is not provided, the hostname  used  to  contact  the
316       server is used
317
318
319       --token=""      Bearer token for authentication to the API server
320
321
322       --update-machine-info-interval=5m0s       Interval between machine info
323       updates.
324
325
326       --user=""      The name of the kubeconfig user to use
327
328
329       --username=""      Username for basic authentication to the API server
330
331
332       -v, --v=0      number for the log level verbosity
333
334
335       --version=false      Print version information and quit
336
337
338       --vmodule=       comma-separated  list  of   pattern=N   settings   for
339       file-filtered logging
340
341
342       --warnings-as-errors=false      Treat warnings received from the server
343       as errors and exit with a non-zero exit code
344
345
346

EXAMPLE

348                # Create a new resourcequota named my-quota
349                kubectl create quota my-quota --hard=cpu=1,memory=1G,pods=2,services=3,replicationcontrollers=2,resourcequotas=1,secrets=5,persistentvolumeclaims=10
350
351                # Create a new resourcequota named best-effort
352                kubectl create quota best-effort --hard=pods=100 --scopes=BestEffort
353
354
355
356

SEE ALSO

358       kubectl-create(1),
359
360
361

HISTORY

363       January 2015, Originally compiled by Eric Paris (eparis at  redhat  dot
364       com)  based  on the kubernetes source material, but hopefully they have
365       been automatically generated since!
366
367
368
369Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum