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

NAME

6       kubectl config get-contexts - Describe one or many contexts
7
8
9

SYNOPSIS

11       kubectl config get-contexts [OPTIONS]
12
13
14

DESCRIPTION

16       Displays one or many contexts from the kubeconfig file.
17
18
19

OPTIONS

21       --no-headers=false
22           When using the default or custom-column output format, don't print
23       headers (default print headers).
24
25
26       -o, --output=""
27           Output format. One of: name
28
29
30

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

334                # List all the contexts in your kubeconfig file
335                kubectl config get-contexts
336
337                # Describe one context in your kubeconfig file.
338                kubectl config get-contexts my-context
339
340
341
342

SEE ALSO

344       kubectl-config(1),
345
346
347

HISTORY

349       January 2015, Originally compiled by Eric Paris (eparis at redhat dot
350       com) based on the kubernetes source material, but hopefully they have
351       been automatically generated since!
352
353
354
355Eric Paris                  kubernetes User Manuals              KUBERNETES(1)
Impressum