Last active
April 8, 2023 19:23
-
-
Save mmehta-10/6f6ee8ecb4f79aea8dc762f8010afd72 to your computer and use it in GitHub Desktop.
Aliases for kubectl commands
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 kclf='kubectl logs --tail=200 -f' | |
alias kcgs='kubectl get service -o wide' | |
alias kcgd='kubectl get deployment -o wide' | |
alias kcgp='kubectl get pod -o wide' | |
alias kcgn='kubectl get node -o wide' | |
alias kcdp='kubectl describe pod' | |
alias kcds='kubectl describe service' | |
alias kcgsa='kubectl get service -o wide --all-namespaces' | |
alias kcgda='kubectl get deployment -o wide --all-namespaces' | |
alias kcgpa='kubectl get pod -o wide --all-namespaces' | |
alias kcgna='kubectl get node -o wide --all-namespaces' | |
alias kcdpa='kubectl describe pod --all-namespaces' | |
alias kcdsa='kubectl describe service --all-namespaces' | |
alias kcdd='kubectl describe deployment' | |
alias kcdf='kubectl delete -f' | |
alias kcaf='kubectl apply -f' | |
alias kcci='kubectl cluster-info' | |
alias util='kubectl get nodes --no-headers | awk '\''{print $1}'\'' | xargs -I {} sh -c '\''echo {} ; kubectl describe node {} | grep Allocated -A 5 | grep -ve Event -ve Allocated -ve percent -ve -- ; echo '\''' | |
alias kcgc='kc config get-contexts' | |
alias kcuc='kc config use-context' | |
alias kcscn='kc config set-context --current --namespace="$1"' | |
alias kcdn='kc describe no' | |
alias kcgn='kc get no' | |
alias kcd='kc describe' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment