1KUBERNETES(1)(kubernetes)                            KUBERNETES(1)(kubernetes)
2
3
4
5Eric Paris Jan 2015
6
7

NAME

9       kubectl  config  rename-context  - Rename a context from the kubeconfig
10       file
11
12
13

SYNOPSIS

15       kubectl config rename-context [OPTIONS]
16
17
18

DESCRIPTION

20       Renames a context from the kubeconfig file.
21
22
23       CONTEXT_NAME is the context name that you want to change.
24
25
26       NEW_NAME is the new name you want to set.
27
28
29       Note: If the context being renamed is the 'current-context', this field
30       will also be updated.
31
32
33

OPTIONS INHERITED FROM PARENT COMMANDS

35       --as=""      Username to impersonate for the operation. User could be a
36       regular user or a service account in a namespace.
37
38
39       --as-group=[]      Group to impersonate for the  operation,  this  flag
40       can be repeated to specify multiple groups.
41
42
43       --as-uid=""      UID to impersonate for the operation.
44
45
46       --azure-container-registry-config=""       Path  to the file containing
47       Azure container registry configuration information.
48
49
50       --cache-dir="/builddir/.kube/cache"      Default cache directory
51
52
53       --certificate-authority=""      Path to a cert file for the certificate
54       authority
55
56
57       --client-certificate=""      Path to a client certificate file for TLS
58
59
60       --client-key=""      Path to a client key file for TLS
61
62
63       --cluster=""      The name of the kubeconfig cluster to use
64
65
66       --context=""      The name of the kubeconfig context to use
67
68
69       --disable-compression=false       If true, opt-out of response compres‐
70       sion for all requests to the server
71
72
73       --insecure-skip-tls-verify=false      If true, the server's certificate
74       will not be checked for validity. This will make your HTTPS connections
75       insecure
76
77
78       --kubeconfig=""      use a particular kubeconfig file
79
80
81       --match-server-version=false       Require  server  version  to   match
82       client version
83
84
85       -n,  --namespace=""       If  present, the namespace scope for this CLI
86       request
87
88
89       --password=""      Password for basic authentication to the API server
90
91
92       --profile="none"        Name   of   profile   to   capture.   One    of
93       (none|cpu|heap|goroutine|threadcreate|block|mutex)
94
95
96       --profile-output="profile.pprof"       Name  of  the  file to write the
97       profile to
98
99
100       --request-timeout="0"      The length of time to wait before giving  up
101       on  a  single  server  request. Non-zero values should contain a corre‐
102       sponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't time‐
103       out requests.
104
105
106       -s, --server=""      The address and port of the Kubernetes API server
107
108
109       --tls-server-name=""       Server  name  to  use for server certificate
110       validation. If it is not provided, the hostname  used  to  contact  the
111       server is used
112
113
114       --token=""      Bearer token for authentication to the API server
115
116
117       --user=""      The name of the kubeconfig user to use
118
119
120       --username=""      Username for basic authentication to the API server
121
122
123       --version=false      Print version information and quit
124
125
126       --warnings-as-errors=false      Treat warnings received from the server
127       as errors and exit with a non-zero exit code
128
129
130

EXAMPLE

132                # Rename the context 'old-name' to 'new-name' in your kubeconfig file
133                kubectl config rename-context old-name new-name
134
135
136
137

SEE ALSO

139       kubectl-config(1),
140
141
142

HISTORY

144       January 2015, Originally compiled by Eric Paris (eparis at  redhat  dot
145       com)  based  on the kubernetes source material, but hopefully they have
146       been automatically generated since!
147
148
149
150Manuals                              User            KUBERNETES(1)(kubernetes)
Impressum