1OC ADM DIAGNOSTICS(1) June 2016 OC ADM DIAGNOSTICS(1)
2
3
4
6 oc adm diagnostics clusterrolebindings - Check that the default Clus‐
7 terRoleBindings are present and contain the expected subjects
8
9
10
12 oc adm diagnostics clusterrolebindings [OPTIONS]
13
14
15
17 Runs the ClusterRoleBindings diagnostic.
18
19
20 Check that the default ClusterRoleBindings are present and contain the
21 expected subjects
22
23
24
26 --cluster-context=""
27 Client context to use for cluster administrator
28
29
30 -l, --diaglevel=1
31 Level of diagnostic output: 4: Error, 3: Warn, 2: Notice, 1: Info,
32 0: Debug
33
34
35 --loglevel=0
36 Set the level of log output (0-10)
37
38
39 --logspec=""
40 Set per module logging with file|pattern=LEVEL,...
41
42
43 --prevent-modification=false
44 If true, may be set to prevent diagnostics making any changes via
45 the API
46
47
48
50 --allow_verification_with_non_compliant_keys=false
51 Allow a SignatureVerifier to use keys which are technically
52 non-compliant with RFC6962.
53
54
55 --alsologtostderr=false
56 log to standard error as well as files
57
58
59 --application_metrics_count_limit=100
60 Max number of application metrics to store (per container)
61
62
63 --as=""
64 Username to impersonate for the operation
65
66
67 --as-group=[]
68 Group to impersonate for the operation, this flag can be repeated
69 to specify multiple groups.
70
71
72 --azure-container-registry-config=""
73 Path to the file containing Azure container registry configuration
74 information.
75
76
77 --boot_id_file="/proc/sys/kernel/random/boot_id"
78 Comma-separated list of files to check for boot-id. Use the first
79 one that exists.
80
81
82 --cache-dir="/builddir/.kube/http-cache"
83 Default HTTP cache directory
84
85
86 --certificate-authority=""
87 Path to a cert file for the certificate authority
88
89
90 --client-certificate=""
91 Path to a client certificate file for TLS
92
93
94 --client-key=""
95 Path to a client key file for TLS
96
97
98 --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
99 CIDRs opened in GCE firewall for LB traffic proxy health checks
100
101
102 --cluster=""
103 The name of the kubeconfig cluster to use
104
105
106 --container_hints="/etc/cadvisor/container_hints.json"
107 location of the container hints file
108
109
110 --containerd="unix:///var/run/containerd.sock"
111 containerd endpoint
112
113
114 --context=""
115 The name of the kubeconfig context to use
116
117
118 --default-not-ready-toleration-seconds=300
119 Indicates the tolerationSeconds of the toleration for
120 notReady:NoExecute that is added by default to every pod that does not
121 already have such a toleration.
122
123
124 --default-unreachable-toleration-seconds=300
125 Indicates the tolerationSeconds of the toleration for unreach‐
126 able:NoExecute that is added by default to every pod that does not
127 already have such a toleration.
128
129
130 --docker="unix:///var/run/docker.sock"
131 docker endpoint
132
133
134 --docker-tls=false
135 use TLS to connect to docker
136
137
138 --docker-tls-ca="ca.pem"
139 path to trusted CA
140
141
142 --docker-tls-cert="cert.pem"
143 path to client certificate
144
145
146 --docker-tls-key="key.pem"
147 path to private key
148
149
150 --docker_env_metadata_whitelist=""
151 a comma-separated list of environment variable keys that needs to
152 be collected for docker containers
153
154
155 --docker_only=false
156 Only report docker containers in addition to root stats
157
158
159 --docker_root="/var/lib/docker"
160 DEPRECATED: docker root is read from docker info (this is a fall‐
161 back, default: /var/lib/docker)
162
163
164 --enable_load_reader=false
165 Whether to enable cpu load reader
166
167
168 --event_storage_age_limit="default=24h"
169 Max length of time for which to store events (per type). Value is a
170 comma separated list of key values, where the keys are event types
171 (e.g.: creation, oom) or "default" and the value is a duration. Default
172 is applied to all non-specified event types
173
174
175 --event_storage_event_limit="default=100000"
176 Max number of events to store (per type). Value is a comma sepa‐
177 rated list of key values, where the keys are event types (e.g.: cre‐
178 ation, oom) or "default" and the value is an integer. Default is
179 applied to all non-specified event types
180
181
182 --global_housekeeping_interval=0
183 Interval between global housekeepings
184
185
186 --housekeeping_interval=0
187 Interval between container housekeepings
188
189
190 --insecure-skip-tls-verify=false
191 If true, the server's certificate will not be checked for validity.
192 This will make your HTTPS connections insecure
193
194
195 --kubeconfig=""
196 Path to the kubeconfig file to use for CLI requests.
197
198
199 --log-flush-frequency=0
200 Maximum number of seconds between log flushes
201
202
203 --log_backtrace_at=:0
204 when logging hits line file:N, emit a stack trace
205
206
207 --log_cadvisor_usage=false
208 Whether to log the usage of the cAdvisor container
209
210
211 --log_dir=""
212 If non-empty, write log files in this directory
213
214
215 --logtostderr=true
216 log to standard error instead of files
217
218
219 --machine_id_file="/etc/machine-id,/var/lib/dbus/machine-id"
220 Comma-separated list of files to check for machine-id. Use the
221 first one that exists.
222
223
224 --match-server-version=false
225 Require server version to match client version
226
227
228 -n, --namespace=""
229 If present, the namespace scope for this CLI request
230
231
232 --request-timeout="0"
233 The length of time to wait before giving up on a single server
234 request. Non-zero values should contain a corresponding time unit (e.g.
235 1s, 2m, 3h). A value of zero means don't timeout requests.
236
237
238 -s, --server=""
239 The address and port of the Kubernetes API server
240
241
242 --stderrthreshold=2
243 logs at or above this threshold go to stderr
244
245
246 --storage_driver_buffer_duration=0
247 Writes in the storage driver will be buffered for this duration,
248 and committed to the non memory backends as a single transaction
249
250
251 --storage_driver_db="cadvisor"
252 database name
253
254
255 --storage_driver_host="localhost:8086"
256 database host:port
257
258
259 --storage_driver_password="root"
260 database password
261
262
263 --storage_driver_secure=false
264 use secure connection with database
265
266
267 --storage_driver_table="stats"
268 table name
269
270
271 --storage_driver_user="root"
272 database username
273
274
275 --token=""
276 Bearer token for authentication to the API server
277
278
279 --user=""
280 The name of the kubeconfig user to use
281
282
283 -v, --v=0
284 log level for V logs
285
286
287 --version=false
288 Print version information and quit
289
290
291 --vmodule=
292 comma-separated list of pattern=N settings for file-filtered log‐
293 ging
294
295
296
298 oc-adm-diagnostics(1),
299
300
301
303 June 2016, Ported from the Kubernetes man-doc generator
304
305
306
307Openshift Openshift CLI User Manuals OC ADM DIAGNOSTICS(1)