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/v1alpha1"
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|template|go-template|go-tem‐
50       plate-file|templatefile|jsonpath|jsonpath-file.
51
52
53       --save-config=false
54           If  true,  the configuration of current object will be saved in its
55       annotation. Otherwise, the annotation will be unchanged. This  flag  is
56       useful  when  you  want  to perform kubectl apply on this object in the
57       future.
58
59
60       --template=""
61           Template string or path to template file  to  use  when  -o=go-tem‐
62       plate,  -o=go-template-file.  The template format is golang templates [
63http://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       --value=0
71           the value of this priority class.
72
73
74

OPTIONS INHERITED FROM PARENT COMMANDS

76       --allow-verification-with-non-compliant-keys=false
77           Allow  a  SignatureVerifier  to  use  keys  which  are  technically
78       non-compliant with RFC6962.
79
80
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="unix:///var/run/containerd.sock"
137           containerd endpoint
138
139
140       --context=""
141           The name of the kubeconfig context to use
142
143
144       --default-not-ready-toleration-seconds=300
145           Indicates    the    tolerationSeconds   of   the   toleration   for
146       notReady:NoExecute that is added by default to every pod that does  not
147       already have such a toleration.
148
149
150       --default-unreachable-toleration-seconds=300
151           Indicates  the  tolerationSeconds  of  the  toleration for unreach‐
152       able:NoExecute that is added by default to  every  pod  that  does  not
153       already have such a toleration.
154
155
156       --docker="unix:///var/run/docker.sock"
157           docker endpoint
158
159
160       --docker-env-metadata-whitelist=""
161           a  comma-separated  list of environment variable keys that needs to
162       be collected for docker containers
163
164
165       --docker-only=false
166           Only report docker containers in addition to root stats
167
168
169       --docker-root="/var/lib/docker"
170           DEPRECATED: docker root is read from docker info (this is  a  fall‐
171       back, default: /var/lib/docker)
172
173
174       --docker-tls=false
175           use TLS to connect to docker
176
177
178       --docker-tls-ca="ca.pem"
179           path to trusted CA
180
181
182       --docker-tls-cert="cert.pem"
183           path to client certificate
184
185
186       --docker-tls-key="key.pem"
187           path to private key
188
189
190       --enable-load-reader=false
191           Whether to enable cpu load reader
192
193
194       --event-storage-age-limit="default=0"
195           Max length of time for which to store events (per type). Value is a
196       comma separated list of key values, where  the  keys  are  event  types
197       (e.g.: creation, oom) or "default" and the value is a duration. Default
198       is applied to all non-specified event types
199
200
201       --event-storage-event-limit="default=0"
202           Max number of events to store (per type). Value is  a  comma  sepa‐
203       rated  list  of  key values, where the keys are event types (e.g.: cre‐
204       ation, oom) or "default" and  the  value  is  an  integer.  Default  is
205       applied to all non-specified event types
206
207
208       --global-housekeeping-interval=1m0s
209           Interval between global housekeepings
210
211
212       --google-json-key=""
213           The  Google  Cloud  Platform  Service  Account  JSON Key to use for
214       authentication.
215
216
217       --housekeeping-interval=10s
218           Interval between container housekeepings
219
220
221       --insecure-skip-tls-verify=false
222           If true, the server's certificate will not be checked for validity.
223       This will make your HTTPS connections insecure
224
225
226       --kubeconfig=""
227           Path to the kubeconfig file to use for CLI requests.
228
229
230       --log-backtrace-at=:0
231           when logging hits line file:N, emit a stack trace
232
233
234       --log-cadvisor-usage=false
235           Whether to log the usage of the cAdvisor container
236
237
238       --log-dir=""
239           If non-empty, write log files in this directory
240
241
242       --log-flush-frequency=5s
243           Maximum number of seconds between log flushes
244
245
246       --logtostderr=true
247           log to standard error instead of files
248
249
250       --machine-id-file="/etc/machine-id,/var/lib/dbus/machine-id"
251           Comma-separated  list  of  files  to  check for machine-id. Use the
252       first one that exists.
253
254
255       --match-server-version=false
256           Require server version to match client version
257
258
259       --mesos-agent="127.0.0.1:5051"
260           Mesos agent address
261
262
263       --mesos-agent-timeout=10s
264           Mesos agent timeout
265
266
267       -n, --namespace=""
268           If present, the namespace scope for this CLI request
269
270
271       --request-timeout="0"
272           The length of time to wait before giving  up  on  a  single  server
273       request. Non-zero values should contain a corresponding time unit (e.g.
274       1s, 2m, 3h). A value of zero means don't timeout requests.
275
276
277       -s, --server=""
278           The address and port of the Kubernetes API server
279
280
281       --stderrthreshold=2
282           logs at or above this threshold go to stderr
283
284
285       --storage-driver-buffer-duration=1m0s
286           Writes in the storage driver will be buffered  for  this  duration,
287       and committed to the non memory backends as a single transaction
288
289
290       --storage-driver-db="cadvisor"
291           database name
292
293
294       --storage-driver-host="localhost:8086"
295           database host:port
296
297
298       --storage-driver-password="root"
299           database password
300
301
302       --storage-driver-secure=false
303           use secure connection with database
304
305
306       --storage-driver-table="stats"
307           table name
308
309
310       --storage-driver-user="root"
311           database username
312
313
314       --token=""
315           Bearer token for authentication to the API server
316
317
318       --user=""
319           The name of the kubeconfig user to use
320
321
322       -v, --v=0
323           log level for V logs
324
325
326       --version=false
327           Print version information and quit
328
329
330       --vmodule=
331           comma-separated  list  of pattern=N settings for file-filtered log‐
332       ging
333
334
335

EXAMPLE

337                # Create a priorityclass named high-priority
338                kubectl create priorityclass high-priority --value=1000 --description="high priority"
339
340                # Create a priorityclass named default-priority that considered as the global default priority
341                kubectl create priorityclass default-priority --value=1000 --global-default=true --description="default priority"
342
343
344
345

SEE ALSO

347       kubectl-create(1),
348
349
350

HISTORY

352       January 2015, Originally compiled by Eric Paris (eparis at  redhat  dot
353       com)  based  on the kubernetes source material, but hopefully they have
354       been automatically generated since!
355
356
357
358Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum