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