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

NAME

6       kubectl  create  priorityclass - Create a priorityclass with the speci‐
7       fied name.
8
9
10

SYNOPSIS

12       kubectl create priorityclass [OPTIONS]
13
14
15

DESCRIPTION

17       Create a priorityclass with the specified  name,  value,  globalDefault
18       and description
19
20
21

OPTIONS

23       --allow-missing-template-keys=true
24           If  true, ignore any errors in templates when a field or map key is
25       missing in the template. Only applies to  golang  and  jsonpath  output
26       formats.
27
28
29       --description=""
30           description is an arbitrary string that usually provides guidelines
31       on when this priority class should be used.
32
33
34       --dry-run=false
35           If true, only print the object that would be sent, without  sending
36       it.
37
38
39       --generator="priorityclass/v1"
40           The name of the API generator to use.
41
42
43       --global-default=false
44           global-default  specifies whether this PriorityClass should be con‐
45       sidered as the default priority.
46
47
48       -o, --output=""
49           Output   format.   One    of:    json|yaml|name|go-template|go-tem‐
50       plate-file|template|templatefile|jsonpath|jsonpath-file.
51
52
53       --preemption-policy=""
54           preemption-policy is the policy for preempting pods with lower pri‐
55       ority.
56
57
58       --save-config=false
59           If true, the configuration of current object will be saved  in  its
60       annotation.  Otherwise,  the annotation will be unchanged. This flag is
61       useful when you want to perform kubectl apply on  this  object  in  the
62       future.
63
64
65       --template=""
66           Template  string  or  path  to template file to use when -o=go-tem‐
67       plate, -o=go-template-file. The template format is golang  templates  [
68http://golang.org/pkg/text/template/#pkg-overview⟩].
69
70
71       --validate=true
72           If true, use a schema to validate the input before sending it
73
74
75       --value=0
76           the value of this priority class.
77
78
79

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

366                # Create a priorityclass named high-priority
367                kubectl create priorityclass high-priority --value=1000 --description="high priority"
368
369                # Create a priorityclass named default-priority that considered as the global default priority
370                kubectl create priorityclass default-priority --value=1000 --global-default=true --description="default priority"
371
372                # Create a priorityclass named high-priority that can not preempt pods with lower priority
373                kubectl create priorityclass high-priority --value=1000 --description="high priority" --preemption-policy="Never"
374
375
376
377

SEE ALSO

379       kubectl-create(1),
380
381
382

HISTORY

384       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
385       com) based on the kubernetes source material, but hopefully  they  have
386       been automatically generated since!
387
388
389
390Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum