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