Skip to content

Instantly share code, notes, and snippets.

@vnovichek
Created August 9, 2019 08:49
Show Gist options
  • Save vnovichek/1bbdad6d7c8518d85c42d54a21439b5b to your computer and use it in GitHub Desktop.
Save vnovichek/1bbdad6d7c8518d85c42d54a21439b5b to your computer and use it in GitHub Desktop.
alias k=kubectl
alias kg='kubectl get'
alias kga='kubectl get all'
alias kgp='kubectl get pod'
alias kgd='kubectl get deploy'
alias kd='kubectl describe'
alias k-prom-prod='kubectl port-forward --address 0.0.0.0 -n prometheus deploy/prometheus-server 9090:9090 &> /dev/null & kubectl port-forward --address 0.0.0.0 -n prometheus deploy/prometheus-alertmanager 9093:9093 &> /dev/null &'
alias k-prom-stage='kubectl port-forward --address 0.0.0.0 -n prometheus deploy/prometheus-server 9190:9090 &> /dev/null & kubectl port-forward --address 0.0.0.0 -n prometheus deploy/prometheus-alertmanager 9193:9093 &> /dev/null &'
alias bb='kubectl run busybox --image=busybox --rm -it --restart=Never --command --'
source ~/.kube-ps1.sh
PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(kube_ps1)\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment