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

NAME

6       kubectl version - Print the client and server version information
7
8
9

SYNOPSIS

11       kubectl version [OPTIONS]
12
13
14

DESCRIPTION

16       Print the client and server version information for the current context
17
18
19

OPTIONS

21       --client=false
22           If true, shows client version only (no server required).
23
24
25       -o, --output=""
26           One of 'yaml' or 'json'.
27
28
29       --short=false
30           If true, print just the version number.
31
32
33

OPTIONS INHERITED FROM PARENT COMMANDS

35       --add-dir-header=false
36           If true, adds the file directory to the header
37
38
39       --alsologtostderr=false
40           log to standard error as well as files
41
42
43       --application-metrics-count-limit=100
44           Max number of application metrics to store (per container)
45
46
47       --as=""
48           Username to impersonate for the operation
49
50
51       --as-group=[]
52           Group to impersonate for the operation, this flag can be repeated
53       to specify multiple groups.
54
55
56       --azure-container-registry-config=""
57           Path to the file containing Azure container registry configuration
58       information.
59
60
61       --boot-id-file="/proc/sys/kernel/random/boot_id"
62           Comma-separated list of files to check for boot-id. Use the first
63       one that exists.
64
65
66       --cache-dir="/builddir/.kube/http-cache"
67           Default HTTP cache directory
68
69
70       --certificate-authority=""
71           Path to a cert file for the certificate authority
72
73
74       --client-certificate=""
75           Path to a client certificate file for TLS
76
77
78       --client-key=""
79           Path to a client key file for TLS
80
81
82       --cloud-provider-gce-l7lb-src-cidrs=130.211.0.0/22,35.191.0.0/16
83           CIDRs opened in GCE firewall for L7 LB traffic proxy  health checks
84
85
86       --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
87           CIDRs opened in GCE firewall for L4 LB traffic proxy  health checks
88
89
90       --cluster=""
91           The name of the kubeconfig cluster to use
92
93
94       --container-hints="/etc/cadvisor/container_hints.json"
95           location of the container hints file
96
97
98       --containerd="/run/containerd/containerd.sock"
99           containerd endpoint
100
101
102       --containerd-namespace="k8s.io"
103           containerd namespace
104
105
106       --context=""
107           The name of the kubeconfig context to use
108
109
110       --default-not-ready-toleration-seconds=300
111           Indicates the tolerationSeconds of the toleration for
112       notReady:NoExecute that is added by default to every pod that does not
113       already have such a toleration.
114
115
116       --default-unreachable-toleration-seconds=300
117           Indicates the tolerationSeconds of the toleration for
118       unreachable:NoExecute that is added by default to every pod that does
119       not already have such a toleration.
120
121
122       --disable-root-cgroup-stats=false
123           Disable collecting root Cgroup stats
124
125
126       --docker="unix:///var/run/docker.sock"
127           docker endpoint
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
141       fallback, default: /var/lib/docker)
142
143
144       --docker-tls=false
145           use TLS to connect to docker
146
147
148       --docker-tls-ca="ca.pem"
149           path to trusted CA
150
151
152       --docker-tls-cert="cert.pem"
153           path to client certificate
154
155
156       --docker-tls-key="key.pem"
157           path to private key
158
159
160       --enable-load-reader=false
161           Whether to enable cpu load reader
162
163
164       --event-storage-age-limit="default=0"
165           Max length of time for which to store events (per type). Value is a
166       comma separated list of key values, where the keys are event types
167       (e.g.: creation, oom) or "default" and the value is a duration. Default
168       is applied to all non-specified event types
169
170
171       --event-storage-event-limit="default=0"
172           Max number of events to store (per type). Value is a comma
173       separated list of key values, where the keys are event types (e.g.:
174       creation, oom) or "default" and the value is an integer. Default is
175       applied to all non-specified event types
176
177
178       --global-housekeeping-interval=1m0s
179           Interval between global housekeepings
180
181
182       --housekeeping-interval=10s
183           Interval between container housekeepings
184
185
186       --insecure-skip-tls-verify=false
187           If true, the server's certificate will not be checked for validity.
188       This will make your HTTPS connections insecure
189
190
191       --kubeconfig=""
192           Path to the kubeconfig file to use for CLI requests.
193
194
195       --log-backtrace-at=:0
196           when logging hits line file:N, emit a stack trace
197
198
199       --log-cadvisor-usage=false
200           Whether to log the usage of the cAdvisor container
201
202
203       --log-dir=""
204           If non-empty, write log files in this directory
205
206
207       --log-file=""
208           If non-empty, use this log file
209
210
211       --log-file-max-size=1800
212           Defines the maximum size a log file can grow to. Unit is megabytes.
213       If the value is 0, the maximum file size is unlimited.
214
215
216       --log-flush-frequency=5s
217           Maximum number of seconds between log flushes
218
219
220       --logtostderr=true
221           log to standard error instead of files
222
223
224       --machine-id-file="/etc/machine-id,/var/lib/dbus/machine-id"
225           Comma-separated list of files to check for machine-id. Use the
226       first one that exists.
227
228
229       --match-server-version=false
230           Require server version to match client version
231
232
233       -n, --namespace=""
234           If present, the namespace scope for this CLI request
235
236
237       --password=""
238           Password for basic authentication to the API server
239
240
241       --profile="none"
242           Name of profile to capture. One of
243       (none|cpu|heap|goroutine|threadcreate|block|mutex)
244
245
246       --profile-output="profile.pprof"
247           Name of the file to write the profile to
248
249
250       --request-timeout="0"
251           The length of time to wait before giving up on a single server
252       request. Non-zero values should contain a corresponding time unit (e.g.
253       1s, 2m, 3h). A value of zero means don't timeout requests.
254
255
256       -s, --server=""
257           The address and port of the Kubernetes API server
258
259
260       --skip-headers=false
261           If true, avoid header prefixes in the log messages
262
263
264       --skip-log-headers=false
265           If true, avoid headers when opening log files
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       --tls-server-name=""
302           Server name to use for server certificate validation. If it is not
303       provided, the hostname used to contact the server is used
304
305
306       --token=""
307           Bearer token for authentication to the API server
308
309
310       --update-machine-info-interval=5m0s
311           Interval between machine info updates.
312
313
314       --user=""
315           The name of the kubeconfig user to use
316
317
318       --username=""
319           Username for basic authentication to the API server
320
321
322       -v, --v=0
323           number for the log level verbosity
324
325
326       --version=false
327           Print version information and quit
328
329
330       --vmodule=
331           comma-separated list of pattern=N settings for file-filtered
332       logging
333
334
335

EXAMPLE

337                # Print the client and server versions for the current context
338                kubectl version
339
340
341
342

SEE ALSO

344       kubectl(1),
345
346
347

HISTORY

349       January 2015, Originally compiled by Eric Paris (eparis at redhat dot
350       com) based on the kubernetes source material, but hopefully they have
351       been automatically generated since!
352
353
354
355Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum