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       --insecure-skip-tls-verify=false
179           If true, the server's certificate will not be checked for validity.
180       This will make your HTTPS connections insecure
181
182
183       --kubeconfig=""
184           Path to the kubeconfig file to use for CLI requests.
185
186
187       --log-flush-frequency=0
188           Maximum number of seconds between log flushes
189
190
191       --log_backtrace_at=:0
192           when logging hits line file:N, emit a stack trace
193
194
195       --log_cadvisor_usage=false
196           Whether to log the usage of the cAdvisor container
197
198
199       --log_dir=""
200           If non-empty, write log files in this directory
201
202
203       --logtostderr=true
204           log to standard error instead of files
205
206
207       --machine_id_file="/etc/machine-id,/var/lib/dbus/machine-id"
208           Comma-separated list of files to  check  for  machine-id.  Use  the
209       first one that exists.
210
211
212       --match-server-version=false
213           Require server version to match client version
214
215
216       -n, --namespace=""
217           If present, the namespace scope for this CLI request
218
219
220       --request-timeout="0"
221           The  length  of  time  to  wait before giving up on a single server
222       request. Non-zero values should contain a corresponding time unit (e.g.
223       1s, 2m, 3h). A value of zero means don't timeout requests.
224
225
226       -s, --server=""
227           The address and port of the Kubernetes API server
228
229
230       --stderrthreshold=2
231           logs at or above this threshold go to stderr
232
233
234       --storage_driver_buffer_duration=0
235           Writes  in  the  storage driver will be buffered for this duration,
236       and committed to the non memory backends as a single transaction
237
238
239       --storage_driver_db="cadvisor"
240           database name
241
242
243       --storage_driver_host="localhost:8086"
244           database host:port
245
246
247       --storage_driver_password="root"
248           database password
249
250
251       --storage_driver_secure=false
252           use secure connection with database
253
254
255       --storage_driver_table="stats"
256           table name
257
258
259       --storage_driver_user="root"
260           database username
261
262
263       --token=""
264           Bearer token for authentication to the API server
265
266
267       --user=""
268           The name of the kubeconfig user to use
269
270
271       -v, --v=0
272           log level for V logs
273
274
275       --version=false
276           Print version information and quit
277
278
279       --vmodule=
280           comma-separated list of pattern=N settings for  file-filtered  log‐
281       ging
282
283
284

EXAMPLE

286                # Change the config context to use
287                oc config use-context my-context
288
289                # Set the value of a config preference
290                oc config set preferences.some true
291
292
293
294

SEE ALSO

296       oc(1),    oc-config-current-context(1),    oc-config-delete-cluster(1),
297       oc-config-delete-context(1),     oc-config-get-clusters(1),     oc-con‐
298       fig-get-contexts(1),   oc-config-rename-context(1),   oc-config-set(1),
299       oc-config-set-cluster(1), oc-config-set-context(1),  oc-config-set-cre‐
300       dentials(1),   oc-config-unset(1),   oc-config-use-context(1),  oc-con‐
301       fig-view(1),
302
303
304

HISTORY

306       June 2016, Ported from the Kubernetes man-doc generator
307
308
309
310Openshift                  Openshift CLI User Manuals                    OC(1)
Impressum