Created
September 25, 2019 14:41
-
-
Save deenski/fe30642a0b4ca204b4fd8f43284f461b to your computer and use it in GitHub Desktop.
.bashrc kubectl aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #### 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