1KUBERNETES(1)(kubernetes) KUBERNETES(1)(kubernetes)
2
3
4
5Eric Paris Jan 2015
6
7
9 kubectl create priorityclass - Create a priority class with the speci‐
10 fied name
11
12
13
15 kubectl create priorityclass [OPTIONS]
16
17
18
20 Create a priority class 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, jsonpath-as-
51 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="strict" Must be one of: strict (or true), warn, ignore
74 (or false). "true" or "strict" will use a schema to validate
75 the input and fail the request if invalid. It will perform server side
76 validation if ServerSideFieldValidation is enabled on the api-server,
77 but will fall back to less reliable client-side validation if not.
78 "warn" will warn about unknown or duplicate fields without
79 blocking the request if server-side field validation is enabled on the
80 API server, and behave as "ignore" otherwise. "false" or
81 "ignore" will not perform any schema validation, silently dropping any
82 unknown or duplicate fields.
83
84
85 --value=0 the value of this priority class.
86
87
88
90 --as="" Username to impersonate for the operation. User could be a
91 regular user or a service account in a namespace.
92
93
94 --as-group=[] Group to impersonate for the operation, this flag
95 can be repeated to specify multiple groups.
96
97
98 --as-uid="" UID to impersonate for the operation.
99
100
101 --azure-container-registry-config="" Path to the file containing
102 Azure container registry configuration information.
103
104
105 --cache-dir="/builddir/.kube/cache" Default cache directory
106
107
108 --certificate-authority="" Path to a cert file for the certificate
109 authority
110
111
112 --client-certificate="" Path to a client certificate file for TLS
113
114
115 --client-key="" Path to a client key file for TLS
116
117
118 --cluster="" The name of the kubeconfig cluster to use
119
120
121 --context="" The name of the kubeconfig context to use
122
123
124 --disable-compression=false If true, opt-out of response compres‐
125 sion for all requests to the server
126
127
128 --insecure-skip-tls-verify=false If true, the server's certificate
129 will not be checked for validity. This will make your HTTPS connections
130 insecure
131
132
133 --kubeconfig="" Path to the kubeconfig file to use for CLI re‐
134 quests.
135
136
137 --match-server-version=false Require server version to match
138 client version
139
140
141 -n, --namespace="" If present, the namespace scope for this CLI
142 request
143
144
145 --password="" Password for basic authentication to the API server
146
147
148 --profile="none" Name of profile to capture. One of
149 (none|cpu|heap|goroutine|threadcreate|block|mutex)
150
151
152 --profile-output="profile.pprof" Name of the file to write the
153 profile to
154
155
156 --request-timeout="0" The length of time to wait before giving up
157 on a single server request. Non-zero values should contain a corre‐
158 sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
159 out requests.
160
161
162 -s, --server="" The address and port of the Kubernetes API server
163
164
165 --tls-server-name="" Server name to use for server certificate
166 validation. If it is not provided, the hostname used to contact the
167 server is used
168
169
170 --token="" Bearer token for authentication to the API server
171
172
173 --user="" The name of the kubeconfig user to use
174
175
176 --username="" Username for basic authentication to the API server
177
178
179 --version=false Print version information and quit
180
181
182 --warnings-as-errors=false Treat warnings received from the server
183 as errors and exit with a non-zero exit code
184
185
186
188 # Create a priority class named high-priority
189 kubectl create priorityclass high-priority --value=1000 --description="high priority"
190
191 # Create a priority class named default-priority that is considered as the global default priority
192 kubectl create priorityclass default-priority --value=1000 --global-default=true --description="default priority"
193
194 # Create a priority class named high-priority that cannot preempt pods with lower priority
195 kubectl create priorityclass high-priority --value=1000 --description="high priority" --preemption-policy="Never"
196
197
198
199
201 kubectl-create(1),
202
203
204
206 January 2015, Originally compiled by Eric Paris (eparis at redhat dot
207 com) based on the kubernetes source material, but hopefully they have
208 been automatically generated since!
209
210
211
212Manuals User KUBERNETES(1)(kubernetes)