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

NAME

6       oc config rename-context - Renames a context from the kubeconfig file.
7
8
9

SYNOPSIS

11       oc config rename-context [OPTIONS]
12
13
14

DESCRIPTION

16       Renames a context from the kubeconfig file.
17
18
19       CONTEXT _NAME is the context name that you wish change.
20
21
22       NEW _NAME is the new name you wish to set.
23
24
25       Note:  In case the context being renamed is the 'current-context', this
26       field will also be updated.
27
28
29

OPTIONS INHERITED FROM PARENT COMMANDS

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

EXAMPLE

287                # Rename the context 'old-name' to 'new-name' in your kubeconfig file
288                oc config rename-context old-name new-name
289
290
291
292

SEE ALSO

294       oc-config(1),
295
296
297

HISTORY

299       June 2016, Ported from the Kubernetes man-doc generator
300
301
302
303Openshift                  Openshift CLI User Manuals             OC CONFIG(1)
Impressum