Skip to content

Instantly share code, notes, and snippets.

@nordineb
Created February 9, 2022 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nordineb/973367fc03e1d9131d0cf9c28db51d67 to your computer and use it in GitHub Desktop.
Save nordineb/973367fc03e1d9131d0cf9c28db51d67 to your computer and use it in GitHub Desktop.
Vim for kubernetes

aliases

alias k=kubectl
alias kgp='k get po'
alias kdp='k delete po --force --grace-period=0'
alias kaf='k apply -f'
alias kdf='k delete -f'
alias kex='k explain'
alias ker='k explain --recursive'

Auto-completion

source <(kubectl completion zsh)
source <(kubectl completion bash)
complete -F __start_kubectl k

setup

vi ~/.vimrc
set ts=2 sts=2 sw=2 et number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment