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

NAME

6       kubectl config get-clusters - Display clusters defined in the
7       kubeconfig
8
9
10

SYNOPSIS

12       kubectl config get-clusters [OPTIONS]
13
14
15

DESCRIPTION

17       Display clusters defined in the kubeconfig.
18
19
20

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

324                # List the clusters kubectl knows about
325                kubectl config get-clusters
326
327
328
329

SEE ALSO

331       kubectl-config(1),
332
333
334

HISTORY

336       January 2015, Originally compiled by Eric Paris (eparis at redhat dot
337       com) based on the kubernetes source material, but hopefully they have
338       been automatically generated since!
339
340
341
342Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum