1KUBERNETES(1)(kubernetes) KUBERNETES(1)(kubernetes)
2
3
4
5Eric Paris Jan 2015
6
7
9 kubectl create priorityclass - Create a priorityclass with the speci‐
10 fied name.
11
12
13
15 kubectl create priorityclass [OPTIONS]
16
17
18
20 Create a priorityclass with the specified name, value, globalDefault
21 and description
22
23
24
26 --allow-missing-template-keys=true If true, ignore any errors in
27 templates when a field or map key is missing in the template. Only ap‐
28 plies to golang and jsonpath output formats.
29
30
31 --description="" description is an arbitrary string that usually
32 provides guidelines on when this priority class should be used.
33
34
35 --dry-run="none" Must be "none", "server", or "client". If client
36 strategy, only print the object that would be sent, without sending it.
37 If server strategy, submit server-side request without persisting the
38 resource.
39
40
41 --field-manager="kubectl-create" Name of the manager used to track
42 field ownership.
43
44
45 --global-default=false global-default specifies whether this Pri‐
46 orityClass should be considered as the default priority.
47
48
49 -o, --output="" Output format. One of: json|yaml|name|go-tem‐
50 plate|go-template-file|template|templatefile|jsonpath|json‐
51 path-as-json|jsonpath-file.
52
53
54 --preemption-policy="PreemptLowerPriority" preemption-policy is
55 the policy for preempting pods with lower priority.
56
57
58 --save-config=false If true, the configuration of current object
59 will be saved in its annotation. Otherwise, the annotation will be un‐
60 changed. This flag is useful when you want to perform kubectl apply on
61 this object in the future.
62
63
64 --show-managed-fields=false If true, keep the managedFields when
65 printing objects in JSON or YAML format.
66
67
68 --template="" Template string or path to template file to use when
69 -o=go-template, -o=go-template-file. The template format is golang tem‐
70 plates [http://golang.org/pkg/text/template/#pkg-overview].
71
72
73 --validate=true If true, use a schema to validate the input before
74 sending it
75
76
77 --value=0 the value of this priority class.
78
79
80
82 --add-dir-header=false If true, adds the file directory to the
83 header of the log messages
84
85
86 --alsologtostderr=false log to standard error as well as files
87
88
89 --application-metrics-count-limit=100 Max number of application
90 metrics to store (per container)
91
92
93 --as="" Username to impersonate for the operation
94
95
96 --as-group=[] Group to impersonate for the operation, this flag
97 can be repeated to specify multiple groups.
98
99
100 --azure-container-registry-config="" Path to the file containing
101 Azure container registry configuration information.
102
103
104 --boot-id-file="/proc/sys/kernel/random/boot_id" Comma-separated
105 list of files to check for boot-id. Use the first one that exists.
106
107
108 --cache-dir="/builddir/.kube/cache" Default cache directory
109
110
111 --certificate-authority="" Path to a cert file for the certificate
112 authority
113
114
115 --client-certificate="" Path to a client certificate file for TLS
116
117
118 --client-key="" Path to a client key file for TLS
119
120
121 --cloud-provider-gce-l7lb-src-cidrs=130.211.0.0/22,35.191.0.0/16
122 CIDRs opened in GCE firewall for L7 LB traffic proxy health
123 checks
124
125
126 --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
127 CIDRs opened in GCE firewall for L4 LB traffic proxy health
128 checks
129
130
131 --cluster="" The name of the kubeconfig cluster to use
132
133
134 --container-hints="/etc/cadvisor/container_hints.json" location of
135 the container hints file
136
137
138 --containerd="/run/containerd/containerd.sock" containerd endpoint
139
140
141 --containerd-namespace="k8s.io" containerd namespace
142
143
144 --context="" The name of the kubeconfig context to use
145
146
147 --default-not-ready-toleration-seconds=300 Indicates the tolera‐
148 tionSeconds of the toleration for notReady:NoExecute that is added by
149 default to every pod that does not already have such a toleration.
150
151
152 --default-unreachable-toleration-seconds=300 Indicates the tolera‐
153 tionSeconds of the toleration for unreachable:NoExecute that is added
154 by default to every pod that does not already have such a toleration.
155
156
157 --disable-root-cgroup-stats=false Disable collecting root Cgroup
158 stats
159
160
161 --docker="unix:///var/run/docker.sock" docker endpoint
162
163
164 --docker-env-metadata-whitelist="" a comma-separated list of envi‐
165 ronment variable keys matched with specified prefix that needs to be
166 collected for docker containers
167
168
169 --docker-only=false Only report docker containers in addition to
170 root stats
171
172
173 --docker-root="/var/lib/docker" DEPRECATED: docker root is read
174 from docker info (this is a fallback, default: /var/lib/docker)
175
176
177 --docker-tls=false use TLS to connect to docker
178
179
180 --docker-tls-ca="ca.pem" path to trusted CA
181
182
183 --docker-tls-cert="cert.pem" path to client certificate
184
185
186 --docker-tls-key="key.pem" path to private key
187
188
189 --enable-load-reader=false Whether to enable cpu load reader
190
191
192 --event-storage-age-limit="default=0" Max length of time for which
193 to store events (per type). Value is a comma separated list of key val‐
194 ues, where the keys are event types (e.g.: creation, oom) or "default"
195 and the value is a duration. Default is applied to all non-specified
196 event types
197
198
199 --event-storage-event-limit="default=0" Max number of events to
200 store (per type). Value is a comma separated list of key values, where
201 the keys are event types (e.g.: creation, oom) or "default" and the
202 value is an integer. Default is applied to all non-specified event
203 types
204
205
206 --global-housekeeping-interval=1m0s Interval between global house‐
207 keepings
208
209
210 --housekeeping-interval=10s Interval between container housekeep‐
211 ings
212
213
214 --insecure-skip-tls-verify=false If true, the server's certificate
215 will not be checked for validity. This will make your HTTPS connections
216 insecure
217
218
219 --kubeconfig="" Path to the kubeconfig file to use for CLI re‐
220 quests.
221
222
223 --log-backtrace-at=:0 when logging hits line file:N, emit a stack
224 trace
225
226
227 --log-cadvisor-usage=false Whether to log the usage of the cAdvi‐
228 sor container
229
230
231 --log-dir="" If non-empty, write log files in this directory
232
233
234 --log-file="" If non-empty, use this log file
235
236
237 --log-file-max-size=1800 Defines the maximum size a log file can
238 grow to. Unit is megabytes. If the value is 0, the maximum file size is
239 unlimited.
240
241
242 --log-flush-frequency=5s Maximum number of seconds between log
243 flushes
244
245
246 --logtostderr=true log to standard error instead of files
247
248
249 --machine-id-file="/etc/machine-id,/var/lib/dbus/machine-id"
250 Comma-separated list of files to check for machine-id. Use the
251 first one that exists.
252
253
254 --match-server-version=false Require server version to match
255 client version
256
257
258 -n, --namespace="" If present, the namespace scope for this CLI
259 request
260
261
262 --one-output=false If true, only write logs to their native sever‐
263 ity level (vs also writing to each lower severity level)
264
265
266 --password="" Password for basic authentication to the API server
267
268
269 --profile="none" Name of profile to capture. One of
270 (none|cpu|heap|goroutine|threadcreate|block|mutex)
271
272
273 --profile-output="profile.pprof" Name of the file to write the
274 profile to
275
276
277 --referenced-reset-interval=0 Reset interval for referenced bytes
278 (container_referenced_bytes metric), number of measurement cycles after
279 which referenced bytes are cleared, if set to 0 referenced bytes are
280 never cleared (default: 0)
281
282
283 --request-timeout="0" The length of time to wait before giving up
284 on a single server request. Non-zero values should contain a corre‐
285 sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
286 out requests.
287
288
289 -s, --server="" The address and port of the Kubernetes API server
290
291
292 --skip-headers=false If true, avoid header prefixes in the log
293 messages
294
295
296 --skip-log-headers=false If true, avoid headers when opening log
297 files
298
299
300 --stderrthreshold=2 logs at or above this threshold go to stderr
301
302
303 --storage-driver-buffer-duration=1m0s Writes in the storage driver
304 will be buffered for this duration, and committed to the non memory
305 backends as a single transaction
306
307
308 --storage-driver-db="cadvisor" database name
309
310
311 --storage-driver-host="localhost:8086" database host:port
312
313
314 --storage-driver-password="root" database password
315
316
317 --storage-driver-secure=false use secure connection with database
318
319
320 --storage-driver-table="stats" table name
321
322
323 --storage-driver-user="root" database username
324
325
326 --tls-server-name="" Server name to use for server certificate
327 validation. If it is not provided, the hostname used to contact the
328 server is used
329
330
331 --token="" Bearer token for authentication to the API server
332
333
334 --update-machine-info-interval=5m0s Interval between machine info
335 updates.
336
337
338 --user="" The name of the kubeconfig user to use
339
340
341 --username="" Username for basic authentication to the API server
342
343
344 -v, --v=0 number for the log level verbosity
345
346
347 --version=false Print version information and quit
348
349
350 --vmodule= comma-separated list of pattern=N settings for
351 file-filtered logging
352
353
354 --warnings-as-errors=false Treat warnings received from the server
355 as errors and exit with a non-zero exit code
356
357
358
360 # Create a priorityclass named high-priority
361 kubectl create priorityclass high-priority --value=1000 --description="high priority"
362
363 # Create a priorityclass named default-priority that considered as the global default priority
364 kubectl create priorityclass default-priority --value=1000 --global-default=true --description="default priority"
365
366 # Create a priorityclass named high-priority that can not preempt pods with lower priority
367 kubectl create priorityclass high-priority --value=1000 --description="high priority" --preemption-policy="Never"
368
369
370
371
373 kubectl-create(1),
374
375
376
378 January 2015, Originally compiled by Eric Paris (eparis at redhat dot
379 com) based on the kubernetes source material, but hopefully they have
380 been automatically generated since!
381
382
383
384Manuals User KUBERNETES(1)(kubernetes)