I hereby claim:
- I am richardcane on github.
- I am richardcane (https://keybase.io/richardcane) on keybase.
- I have a public key ASC05NLIr-y9XUjXXAwylBtWwbDImmdzeK5JeKwZKVcLHAo
To claim this, I am signing this object:
This file contains 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
alias kc=kubectl | |
alias kns=kubens | |
source <(kubectl completion bash | \ | |
sed 's/kubectl/kc/g' | \ | |
sed 's/kc_get/get/g' | \ | |
sed 's/kc_edit/edit/g' | \ | |
sed 's/kc_delete/delete/g' | \ | |
sed 's/kc_exec/exec/g') | |
alias get='kc get $@' |
This file contains 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
Disclaimer: these are in no way their most perfect form and mostly haven't been updated to account for Docker updates in the year prior to this comment. | |
Mostly self explanatory, most of these commands (excluding up) allow you to provide partial names to operate on containers. | |
Only one that might need explaining is dps, which is a reformatted docker ps that provides IP and running ports alongside other useful container information. It's a bit slower than docker ps -a as it inspects each running container before printing it out. There's probably a quicker way to do this, but it works. | |
To install, add to run commands for whatever terminal you're using (.bashrc, .zshrc) |