1KUBERNETES(1)                      Jan 2015                      KUBERNETES(1)
2
3
4

NAME

6       kubectl  cluster-info  dump  - Dump lots of relevant info for debugging
7       and diagnosis
8
9
10

SYNOPSIS

12       kubectl cluster-info dump [OPTIONS]
13
14
15

DESCRIPTION

17       Dumps cluster info out suitable for debugging  and  diagnosing  cluster
18       problems.   By  default, dumps everything to stdout. You can optionally
19       specify a directory with --output-directory.  If you specify  a  direc‐
20       tory,  kubernetes  will  build  a  set  of files in that directory.  By
21       default only dumps things in the 'kube-system' namespace, but  you  can
22       switch  to a different namespace with the --namespaces flag, or specify
23       --all-namespaces to dump all namespaces.
24
25
26       The command also dumps the logs of all of  the  pods  in  the  cluster,
27       these logs are dumped into different directories based on namespace and
28       pod name.
29
30
31

OPTIONS

33       --all-namespaces=false
34           If true, dump all namespaces.  If true, --namespaces is ignored.
35
36
37       --allow-missing-template-keys=true
38           If true, ignore any errors in templates when a field or map key  is
39       missing  in  the  template.  Only applies to golang and jsonpath output
40       formats.
41
42
43       --namespaces=[]
44           A comma separated list of namespaces to dump.
45
46
47       -o, --output="json"
48           Output format. One of:  json|yaml|name|template|go-template|go-tem‐
49       plate-file|templatefile|jsonpath|jsonpath-file.
50
51
52       --output-directory=""
53           Where  to output the files.  If empty or '-' uses stdout, otherwise
54       creates a directory hierarchy in that directory
55
56
57       --pod-running-timeout=20s
58           The length of time (like 5s, 2m, or 3h, higher than zero)  to  wait
59       until at least one pod is running
60
61
62       --template=""
63           Template  string  or  path  to template file to use when -o=go-tem‐
64       plate, -o=go-template-file. The template format is golang  templates  [
65http://golang.org/pkg/text/template/#pkg-overview⟩].
66
67
68

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

331                # Dump current cluster state to stdout
332                kubectl cluster-info dump
333
334                # Dump current cluster state to /path/to/cluster-state
335                kubectl cluster-info dump --output-directory=/path/to/cluster-state
336
337                # Dump all namespaces to stdout
338                kubectl cluster-info dump --all-namespaces
339
340                # Dump a set of namespaces to /path/to/cluster-state
341                kubectl cluster-info dump --namespaces default,kube-system --output-directory=/path/to/cluster-state
342
343
344
345

SEE ALSO

347       kubectl-cluster-info(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