1KUBERNETES(1) Jan 2015 KUBERNETES(1)
2
3
4
6 kubectl api-versions - Print the supported API versions on the server,
7 in the form of "group/version"
8
9
10
12 kubectl api-versions [OPTIONS]
13
14
15
17 Print the supported API versions on the server, in the form of
18 "group/version"
19
20
21
23 --add-dir-header=false
24 If true, adds the file directory to the header
25
26
27 --alsologtostderr=false
28 log to standard error as well as files
29
30
31 --application-metrics-count-limit=100
32 Max number of application metrics to store (per container)
33
34
35 --as=""
36 Username to impersonate for the operation
37
38
39 --as-group=[]
40 Group to impersonate for the operation, this flag can be repeated
41 to specify multiple groups.
42
43
44 --azure-container-registry-config=""
45 Path to the file containing Azure container registry configuration
46 information.
47
48
49 --boot-id-file="/proc/sys/kernel/random/boot_id"
50 Comma-separated list of files to check for boot-id. Use the first
51 one that exists.
52
53
54 --cache-dir="/builddir/.kube/http-cache"
55 Default HTTP cache directory
56
57
58 --certificate-authority=""
59 Path to a cert file for the certificate authority
60
61
62 --client-certificate=""
63 Path to a client certificate file for TLS
64
65
66 --client-key=""
67 Path to a client key file for TLS
68
69
70 --cloud-provider-gce-l7lb-src-cidrs=130.211.0.0/22,35.191.0.0/16
71 CIDRs opened in GCE firewall for L7 LB traffic proxy health checks
72
73
74 --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
75 CIDRs opened in GCE firewall for L4 LB traffic proxy health checks
76
77
78 --cluster=""
79 The name of the kubeconfig cluster to use
80
81
82 --container-hints="/etc/cadvisor/container_hints.json"
83 location of the container hints file
84
85
86 --containerd="/run/containerd/containerd.sock"
87 containerd endpoint
88
89
90 --containerd-namespace="k8s.io"
91 containerd namespace
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
106 unreachable:NoExecute that is added by default to every pod that does
107 not already have such a toleration.
108
109
110 --disable-root-cgroup-stats=false
111 Disable collecting root Cgroup stats
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
129 fallback, 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
161 separated list of key values, where the keys are event types (e.g.:
162 creation, 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
231 (none|cpu|heap|goroutine|threadcreate|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 --tls-server-name=""
290 Server name to use for server certificate validation. If it is not
291 provided, the hostname used to contact the server is used
292
293
294 --token=""
295 Bearer token for authentication to the API server
296
297
298 --update-machine-info-interval=5m0s
299 Interval between machine info updates.
300
301
302 --user=""
303 The name of the kubeconfig user to use
304
305
306 --username=""
307 Username for basic authentication to the API server
308
309
310 -v, --v=0
311 number for the log level verbosity
312
313
314 --version=false
315 Print version information and quit
316
317
318 --vmodule=
319 comma-separated list of pattern=N settings for file-filtered
320 logging
321
322
323
325 # Print the supported API versions
326 kubectl api-versions
327
328
329
330
332 kubectl(1),
333
334
335
337 January 2015, Originally compiled by Eric Paris (eparis at redhat dot
338 com) based on the kubernetes source material, but hopefully they have
339 been automatically generated since!
340
341
342
343Eric Paris kubernetes User Manuals KUBERNETES(1)