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           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

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

296                # Print the client and server versions for the current context
297                kubectl version
298
299
300
301

SEE ALSO

303       kubectl(1),
304
305
306

HISTORY

308       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
309       com) based on the kubernetes source material, but hopefully  they  have
310       been automatically generated since!
311
312
313
314Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum