Re: [kubernetes/kubernetes] Add `kubectl config rename-context` (#45131)

1 view
Skip to first unread message

Michail Kargakis

unread,
May 21, 2017, 6:51:00 AM5/21/17
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

@kubernetes/sig-cli-feature-requests


You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Kubernetes Submit Queue

unread,
May 30, 2017, 3:00:05 PM5/30/17
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Closed #45131 via #46114.

Koren Lev

unread,
Jan 2, 2018, 4:40:12 AM1/2/18
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

worked with v1.9.0:

  1. kubectl config get-contexts

  2. kubectl config set-context --cluster --user

  3. kubectl config delete-context

  4. kubectl config use-context

Gilad Sharaby

unread,
May 30, 2019, 4:37:16 AM5/30/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

this may be kind of old, but for future readers, check out kubectx.
after installing you can simply run -
kubectx <NEW_NAME>=. : rename current-context to <NEW_NAME>

Camilo Santana

unread,
Aug 29, 2019, 4:29:59 PM8/29/19
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

this has been added!
ref: kubectl-commands#-em-rename-context

Rename the context 'old-name' to 'new-name' in your kubeconfig file
kubectl config rename-context old-name new-name

_spaceb

unread,
Apr 12, 2020, 7:52:54 PM4/12/20
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

this has been added!
ref: kubectl-commands#-em-rename-context

Rename the context 'old-name' to 'new-name' in your kubeconfig file
kubectl config rename-context old-name new-name

Does this let you rename the cluster name?


You are receiving this because you are on a team that was mentioned.

Reply to this email directly, view it on GitHub, or unsubscribe.

Vikas Kumar

unread,
Mar 11, 2022, 2:57:23 AM3/11/22
to kubernetes/kubernetes, k8s-mirror-cli-feature-requests, Team mention

Does this let you rename the cluster name?

Yes, it does, try it out :)


Reply to this email directly, view it on GitHub, or unsubscribe.

Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are on a team that was mentioned.Message ID: <kubernetes/kubernetes/issues/45131/1064863919@github.com>

Reply all
Reply to author
Forward
0 new messages