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

NAME

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

SYNOPSIS

11       kubectl create quota [OPTIONS]
12
13
14

DESCRIPTION

16       Create a resourcequota with the specified name, hard limits and
17       optional scopes
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="none"
29           Must be "none", "server", or "client". If client strategy, only
30       print the object that would be sent, without sending it. If server
31       strategy, submit server-side request without persisting the resource.
32
33
34       --generator="resourcequotas/v1"
35           The name of the API generator to use.
36
37
38       --hard=""
39           A comma-delimited set of resource=quantity pairs that define a hard
40       limit.
41
42
43       -o, --output=""
44           Output format. One of:
45       json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file.
46
47
48       --save-config=false
49           If true, the configuration of current object will be saved in its
50       annotation. Otherwise, the annotation will be unchanged. This flag is
51       useful when you want to perform kubectl apply on this object in the
52       future.
53
54
55       --scopes=""
56           A comma-delimited set of quota scopes that must all match each
57       object tracked by the quota.
58
59
60       --template=""
61           Template string or path to template file to use when
62       -o=go-template, -o=go-template-file. The template format is golang
63       templates [ ⟨http://golang.org/pkg/text/template/#pkg-overview⟩].
64
65
66       --validate=true
67           If true, use a schema to validate the input before sending it
68
69
70

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

374                # Create a new resourcequota named my-quota
375                kubectl create quota my-quota --hard=cpu=1,memory=1G,pods=2,services=3,replicationcontrollers=2,resourcequotas=1,secrets=5,persistentvolumeclaims=10
376
377                # Create a new resourcequota named best-effort
378                kubectl create quota best-effort --hard=pods=100 --scopes=BestEffort
379
380
381
382

SEE ALSO

384       kubectl-create(1),
385
386
387

HISTORY

389       January 2015, Originally compiled by Eric Paris (eparis at redhat dot
390       com) based on the kubernetes source material, but hopefully they have
391       been automatically generated since!
392
393
394
395Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum