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