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