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