Skip to content

Commit

Permalink
Add aliases for kubectl commands
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav-nath authored Jun 26, 2023
1 parent c334765 commit e332aee
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions dev-setup/.aliases
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,24 @@ alias mate="/Applications/TextMate.app/Contents/Resources/mate"

# Search WikiPedia
alias wiki='python -c '\''import sys, wikipedia; print("Please provide a search query!") if len(sys.argv) < 2 else print(wikipedia.summary(sys.argv[1]))'\'

# kubectl aliases
alias k="kubectl"
alias kg="k get"
alias kgpo="k get pods"
alias kgdep="k get deployments"
alias kgsvc="k get services"
alias kgcm="k get cm"
alias kdpo="k describe pod"
alias kddep="k describe deployment"
alias kdsvc="k describe service"
alias kdcm="k describe cm"
alias ktpo="k top pods"
alias kex="kubectl exec -i -t"
alias krm="k delete"
alias krmdep="k delete deployment"
alias krmsvc="k delete service"
alias krmcm="k delete configmap"

# get services count
alias kgsvccnt="k get svc | sed -n '1!p' | wc -l"

0 comments on commit e332aee

Please sign in to comment.