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