1OC(1)                              June 2016                             OC(1)
2
3
4

NAME

6       oc config - Change configuration files for the client
7
8
9

SYNOPSIS

11       oc config [OPTIONS]
12
13
14

DESCRIPTION

16       Manage the client config files
17
18
19       The  client  stores  configuration in the current user's home directory
20       (under the .kube directory as config). When you login the first time, a
21       new  config  file  is  created, and subsequent project changes with the
22       'project' command will set the current context. These subcommands allow
23       you to manage the config directly.
24
25
26       Reference:          ⟨https://github.com/kubernetes/kubernetes/blob/mas
27       ter/docs/user-guide/kubeconfig-file.md⟩
28
29
30

OPTIONS

32       --config=""
33           use a particular kubeconfig file
34
35
36

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

290                # Change the config context to use
291                oc config use-context my-context
292
293                # Set the value of a config preference
294                oc config set preferences.some true
295
296
297
298

SEE ALSO

300       oc(1),    oc-config-current-context(1),    oc-config-delete-cluster(1),
301       oc-config-delete-context(1),     oc-config-get-clusters(1),     oc-con‐
302       fig-get-contexts(1),   oc-config-rename-context(1),   oc-config-set(1),
303       oc-config-set-cluster(1), oc-config-set-context(1),  oc-config-set-cre‐
304       dentials(1),   oc-config-unset(1),   oc-config-use-context(1),  oc-con‐
305       fig-view(1),
306
307
308

HISTORY

310       June 2016, Ported from the Kubernetes man-doc generator
311
312
313
314Openshift                  Openshift CLI User Manuals                    OC(1)
Impressum