Skip to content

Instantly share code, notes, and snippets.

@brightzheng100
Last active November 5, 2019 08:04
Show Gist options
  • Save brightzheng100/1d45b37403a81e1225d800ead262387f to your computer and use it in GitHub Desktop.
Save brightzheng100/1d45b37403a81e1225d800ead262387f to your computer and use it in GitHub Desktop.
k8s-get-started
set autoindent
set tabstop=2 shiftwidth=2 expandtab
set history=50
set hlsearch
set ignorecase
set incsearch
set linebreak
set listchars=eol:¶
set list
set nobackup
set noswapfile
set nowb
set nowrap
set nowritebackup
set number
set ruler
set scrolloff=8
set shiftround
set showcmd
set sidescroll=1
set sidescrolloff=15
set smartcase
set smartindent
syntax enable
alias k='kubectl'
alias kg='kubectl get'
alias kgp='kubectl get po'
alias kgi='kubectl get ing'
alias kgd='kubectl get deploy'
alias kgs='kubectl get svc'
alias kga='kubectl get --all-namespaces'
alias kgpa='kubectl get po --all-namespaces'
alias kaf='kubectl apply -f'
alias kd='kubectl delete'
alias kdp='kubectl delete po'
alias kdf='kubectl delete -f'
alias kdesc='kubectl describe'
alias kl="kubectl label"
alias kccc="kubectl config current-context"
alias kcgc="kubectl config get-contexts"
alias klogs='kubectl logs'
alias kexec="kubectl exec -it"
# for oh-my-zsh, do something like: plugins=(git zsh-autosuggestions kubectl)
source <(kubectl completion bash)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment