mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-14 04:44:22 +08:00
kubectl: add alias to list pods by namespace (#8604)
This commit is contained in:
1 parent
93e9b80d3f
commit
8260005dc7
2 files changed
+5
-1
No files matched your search
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user