1KUBERNETES(1) Jan 2015 KUBERNETES(1)
2
3
4
6 kubectl version - Print the client and server version information
7
8
9
11 kubectl version [OPTIONS]
12
13
14
16 Print the client and server version information for the current context
17
18
19
21 --client=false
22 Client version only (no server required).
23
24
25 -o, --output=""
26 One of 'yaml' or 'json'.
27
28
29 --short=false
30 Print just the version number.
31
32
33
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="/run/containerd/containerd.sock"
91 containerd endpoint
92
93
94 --containerd-namespace="k8s.io"
95 containerd namespace
96
97
98 --context=""
99 The name of the kubeconfig context to use
100
101
102 --default-not-ready-toleration-seconds=300
103 Indicates the tolerationSeconds of the toleration for
104 notReady:NoExecute that is added by default to every pod that does not
105 already have such a toleration.
106
107
108 --default-unreachable-toleration-seconds=300
109 Indicates the tolerationSeconds of the toleration for unreach‐
110 able:NoExecute that is added by default to every pod that does not
111 already have such a toleration.
112
113
114 --docker="unix:///var/run/docker.sock"
115 docker endpoint
116
117
118 --docker-env-metadata-whitelist=""
119 a comma-separated list of environment variable keys that needs to
120 be collected for docker containers
121
122
123 --docker-only=false
124 Only report docker containers in addition to root stats
125
126
127 --docker-root="/var/lib/docker"
128 DEPRECATED: docker root is read from docker info (this is a fall‐
129 back, default: /var/lib/docker)
130
131
132 --docker-tls=false
133 use TLS to connect to docker
134
135
136 --docker-tls-ca="ca.pem"
137 path to trusted CA
138
139
140 --docker-tls-cert="cert.pem"
141 path to client certificate
142
143
144 --docker-tls-key="key.pem"
145 path to private key
146
147
148 --enable-load-reader=false
149 Whether to enable cpu load reader
150
151
152 --event-storage-age-limit="default=0"
153 Max length of time for which to store events (per type). Value is a
154 comma separated list of key values, where the keys are event types
155 (e.g.: creation, oom) or "default" and the value is a duration. Default
156 is applied to all non-specified event types
157
158
159 --event-storage-event-limit="default=0"
160 Max number of events to store (per type). Value is a comma sepa‐
161 rated list of key values, where the keys are event types (e.g.: cre‐
162 ation, oom) or "default" and the value is an integer. Default is
163 applied to all non-specified event types
164
165
166 --global-housekeeping-interval=1m0s
167 Interval between global housekeepings
168
169
170 --housekeeping-interval=10s
171 Interval between container housekeepings
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-backtrace-at=:0
184 when logging hits line file:N, emit a stack trace
185
186
187 --log-cadvisor-usage=false
188 Whether to log the usage of the cAdvisor container
189
190
191 --log-dir=""
192 If non-empty, write log files in this directory
193
194
195 --log-file=""
196 If non-empty, use this log file
197
198
199 --log-file-max-size=1800
200 Defines the maximum size a log file can grow to. Unit is megabytes.
201 If the value is 0, the maximum file size is unlimited.
202
203
204 --log-flush-frequency=5s
205 Maximum number of seconds between log flushes
206
207
208 --logtostderr=true
209 log to standard error instead of files
210
211
212 --machine-id-file="/etc/machine-id,/var/lib/dbus/machine-id"
213 Comma-separated list of files to check for machine-id. Use the
214 first one that exists.
215
216
217 --match-server-version=false
218 Require server version to match client version
219
220
221 -n, --namespace=""
222 If present, the namespace scope for this CLI request
223
224
225 --password=""
226 Password for basic authentication to the API server
227
228
229 --profile="none"
230 Name of profile to capture. One of (none|cpu|heap|goroutine|thread‐
231 create|block|mutex)
232
233
234 --profile-output="profile.pprof"
235 Name of the file to write the profile to
236
237
238 --request-timeout="0"
239 The length of time to wait before giving up on a single server
240 request. Non-zero values should contain a corresponding time unit (e.g.
241 1s, 2m, 3h). A value of zero means don't timeout requests.
242
243
244 -s, --server=""
245 The address and port of the Kubernetes API server
246
247
248 --skip-headers=false
249 If true, avoid header prefixes in the log messages
250
251
252 --skip-log-headers=false
253 If true, avoid headers when opening log files
254
255
256 --stderrthreshold=2
257 logs at or above this threshold go to stderr
258
259
260 --storage-driver-buffer-duration=1m0s
261 Writes in the storage driver will be buffered for this duration,
262 and committed to the non memory backends as a single transaction
263
264
265 --storage-driver-db="cadvisor"
266 database name
267
268
269 --storage-driver-host="localhost:8086"
270 database host:port
271
272
273 --storage-driver-password="root"
274 database password
275
276
277 --storage-driver-secure=false
278 use secure connection with database
279
280
281 --storage-driver-table="stats"
282 table name
283
284
285 --storage-driver-user="root"
286 database username
287
288
289 --token=""
290 Bearer token for authentication to the API server
291
292
293 --update-machine-info-interval=5m0s
294 Interval between machine info updates.
295
296
297 --user=""
298 The name of the kubeconfig user to use
299
300
301 --username=""
302 Username for basic authentication to the API server
303
304
305 -v, --v=0
306 number for the log level verbosity
307
308
309 --version=false
310 Print version information and quit
311
312
313 --vmodule=
314 comma-separated list of pattern=N settings for file-filtered log‐
315 ging
316
317
318
320 # Print the client and server versions for the current context
321 kubectl version
322
323
324
325
327 kubectl(1),
328
329
330
332 January 2015, Originally compiled by Eric Paris (eparis at redhat dot
333 com) based on the kubernetes source material, but hopefully they have
334 been automatically generated since!
335
336
337
338Eric Paris kubernetes User Manuals KUBERNETES(1)