Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Edit kubeconfig filesNew to Visual Studio Code? Get it now.
Edit kubeconfig files

Edit kubeconfig files

Sandip Chitale

|
11,620 installs
| (0) | Free
Edit kubeconfig files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-kubernetes-edit-kubeconfig

  • Edit kubeconfig files
  • Swap kubeconfig files

How to use?

The command Edit kubeconfig can be invoked from the Kubernetes:Clusters view title context menu.

  • Edit Kubeconfig command

    Edit Kubeconfig

    • Select Kubeconfig to open for editing

    Select Kubeconfig to open

  • Swap Kubeconfig command

    • Prompts to select Kubeconfig to swap in from. (~/.kube/config is excluded from prompt)

    • Prompts to select Kubeconfig (~/.kube/config is excluded from prompt) to backup ~/.kube/config to.

      • There is an option to create a new backup file name.
    • Shows a confirmation dialog.

      Confirm Kubeconfig Swap

    • After confirmation performs the backup followed by swap in. Useful to switch between clusters with dedicated config fils e.g. config-eks, config-gke, config-aks etc, and still using the default config file ~/.kube/config.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft