Skip to content

Instantly share code, notes, and snippets.

@officialdarnyc
Forked from mordr/note.md
Created October 30, 2021 12:42
Show Gist options
  • Save officialdarnyc/d66bb7964f5036a76c7f2c40cabd152f to your computer and use it in GitHub Desktop.
Save officialdarnyc/d66bb7964f5036a76c7f2c40cabd152f to your computer and use it in GitHub Desktop.
Set Visual Studio Code as default editor for kubectl

Set KUBE_EDITOR to Visual Studio Code, assumes 'code' is in PATH

export KUBE_EDITOR='code --wait'

Running k edit ... will open up the yaml using Visual Studio Code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment