1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 07:20:40 +01:00

kubectl: add alias to list pods by namespace (#8604)

This commit is contained in:
Joaquín Moreira
2020-07-14 11:39:33 -04:00
committed by GitHub
parent 93e9b80d3f
commit 8260005dc7
2 changed files with 5 additions and 1 deletions

View File

@@ -47,6 +47,9 @@ alias kdelp='kubectl delete pods'
# get pod by label: kgpl "app=myapp" -n myns
alias kgpl='kgp -l'
# get pod by namespace: kgpn kube-system"
alias kgpn='kgp -n'
# Service management.
alias kgs='kubectl get svc'
alias kgsa='kubectl get svc --all-namespaces'