Skip to content

Instantly share code, notes, and snippets.

@deenski
Created September 25, 2019 14:41
Show Gist options
  • Select an option

  • Save deenski/fe30642a0b4ca204b4fd8f43284f461b to your computer and use it in GitHub Desktop.

Select an option

Save deenski/fe30642a0b4ca204b4fd8f43284f461b to your computer and use it in GitHub Desktop.
.bashrc kubectl aliases
#### Jakob's .bashrc kubectl aliases
## kubectl aliases
## Don't alias delete commands, be intentional. Consider writing a confirmation function for them.
alias k='kubectl '
alias kg='kubectl get '
alias kd='kubectl describe '
alias kgp='kubectl get pods '
alias kgs='kubectl get service '
alias kgd='kubectl get deployment '
alias kgi='kubectl get ingress '
alias kpf='kubectl port-forward '
alias ktp='kubectl top pod '
alias kdp='kubectl describe pod '
# consul
alias pfconsul='kpf service/system-consul-server 8500 -n kube-system'
alias pfprometheus='kpf service/prometheus-server 9090:80 -n monitoring'
alias pfmemorystore='gcloud compute ssh redis-forwarder -- -N -L 6379:10.0.16.20:6379'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment