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

NAME

6       kubectl  api-versions - Print the supported API versions on the server,
7       in the form of "group/version"
8
9
10

SYNOPSIS

12       kubectl api-versions [OPTIONS]
13
14
15

DESCRIPTION

17       Print the supported  API  versions  on  the  server,  in  the  form  of
18       "group/version"
19
20
21

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

308                # Print the supported API versions
309                kubectl api-versions
310
311
312
313

SEE ALSO

315       kubectl(1),
316
317
318

HISTORY

320       January  2015,  Originally compiled by Eric Paris (eparis at redhat dot
321       com) based on the kubernetes source material, but hopefully  they  have
322       been automatically generated since!
323
324
325
326Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum