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