Skip to content

Instantly share code, notes, and snippets.

@jakoberpf
Last active July 8, 2023 11:13
Show Gist options
  • Save jakoberpf/6e3acd88f2f88394ad88e2dff1d8e530 to your computer and use it in GitHub Desktop.
Save jakoberpf/6e3acd88f2f88394ad88e2dff1d8e530 to your computer and use it in GitHub Desktop.
CKAD shell setup.md
alias k=kubectl
alias kn='k config set-context --current --namespace'
alias kall='k get all -o wide --show-labels'
alias kc='k config get-contexts'

export do='--dry-run=client -o yaml'
export now='--force --grace-period 0'

source /usr/share/bash-completion/bash_completion
source ~/.bashrc
echo 'source <(k completion bash)' >> ~/.bashrc
source ~/.bashrc

In the ~/.vimrc ...

set tabstop=2
set expandtab
set shiftwidth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment