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