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

NAME

6       kubectl top node - Display Resource (CPU/Memory/Storage) usage of nodes
7
8
9

SYNOPSIS

11       kubectl top node [OPTIONS]
12
13
14

DESCRIPTION

16       Display Resource (CPU/Memory/Storage) usage of nodes.
17
18
19       The  top-node  command  allows  you  to see the resource consumption of
20       nodes.
21
22
23

OPTIONS

25       --heapster-namespace="kube-system"
26           Namespace Heapster service is located in
27
28
29       --heapster-port=""
30           Port name in service to use
31
32
33       --heapster-scheme="http"
34           Scheme (http or https) to connect to Heapster as
35
36
37       --heapster-service="heapster"
38           Name of Heapster service
39
40
41       --no-headers=false
42           If present, print output without headers
43
44
45       -l, --selector=""
46           Selector (label query)  to  filter  on,  supports  '=',  '==',  and
47       '!='.(e.g. -l key1=value1,key2=value2)
48
49
50

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

328                # Show metrics for all nodes
329                kubectl top node
330
331                # Show metrics for a given node
332                kubectl top node NODE_NAME
333
334
335
336

SEE ALSO

338       kubectl-top(1),
339
340
341

HISTORY

343       January 2015, Originally compiled by Eric Paris (eparis at  redhat  dot
344       com)  based  on the kubernetes source material, but hopefully they have
345       been automatically generated since!
346
347
348
349Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum