mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-11-25 09:53:04 +01:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c331c78d2 |
No files matched your search
@@ -31,6 +31,8 @@ plugins=(... kubectl)
|
|||||||
| kdelk | `kubectl delete -k` | Delete all resources defined in a kustomization directory |
|
| kdelk | `kubectl delete -k` | Delete all resources defined in a kustomization directory |
|
||||||
| kge | `kubectl get events --sort-by=".lastTimestamp"` | Get events (sorted by timestamp) |
|
| kge | `kubectl get events --sort-by=".lastTimestamp"` | Get events (sorted by timestamp) |
|
||||||
| kgew | `kubectl get events --watch --sort-by=".lastTimestamp"` | Get events and watch as they occur (sorted by timestamp) |
|
| kgew | `kubectl get events --watch --sort-by=".lastTimestamp"` | Get events and watch as they occur (sorted by timestamp) |
|
||||||
|
| kg | `kubectl get` | Get one or more resources |
|
||||||
|
| kd | `kubectl describe` | Describe one or more resources in detail |
|
||||||
| | | **Pod management** |
|
| | | **Pod management** |
|
||||||
| kgp | `kubectl get pods` | List all pods in ps output format |
|
| kgp | `kubectl get pods` | List all pods in ps output format |
|
||||||
| kgpl | `kgp -l` | Get pods by label. Example: `kgpl "app=myapp" -n myns` |
|
| kgpl | `kgp -l` | Get pods by label. Example: `kgpl "app=myapp" -n myns` |
|
||||||
@@ -122,6 +124,10 @@ plugins=(... kubectl)
|
|||||||
| kepvc | `kubectl edit pvc` | Edit pvcs from the default editor |
|
| kepvc | `kubectl edit pvc` | Edit pvcs from the default editor |
|
||||||
| kdpvc | `kubectl describe pvc` | Describe all pvcs |
|
| kdpvc | `kubectl describe pvc` | Describe all pvcs |
|
||||||
| kdelpvc | `kubectl delete pvc` | Delete all pvcs matching passed arguments |
|
| kdelpvc | `kubectl delete pvc` | Delete all pvcs matching passed arguments |
|
||||||
|
| | | **Endpoints management** |
|
||||||
|
| kged | `kubectl get endpoints` | List all endpoints |
|
||||||
|
| kgeda | `kubectl get endpoints --all-namespaces` | List all endpoints across all namespaces |
|
||||||
|
| kded | `kubectl describe endpoints` | Describe endpoints in detail |
|
||||||
| | | **StatefulSets management** |
|
| | | **StatefulSets management** |
|
||||||
| kgss | `kubectl get statefulset` | List the statefulsets in ps format |
|
| kgss | `kubectl get statefulset` | List the statefulsets in ps format |
|
||||||
| kgssa | `kubectl get statefulset --all-namespaces` | List statefulsets across all namespaces |
|
| kgssa | `kubectl get statefulset --all-namespaces` | List statefulsets across all namespaces |
|
||||||
|
|||||||
@@ -47,6 +47,8 @@ alias kdelf='kubectl delete -f'
|
|||||||
alias kdelk='kubectl delete -k'
|
alias kdelk='kubectl delete -k'
|
||||||
alias kge='kubectl get events --sort-by=".lastTimestamp"'
|
alias kge='kubectl get events --sort-by=".lastTimestamp"'
|
||||||
alias kgew='kubectl get events --sort-by=".lastTimestamp" --watch'
|
alias kgew='kubectl get events --sort-by=".lastTimestamp" --watch'
|
||||||
|
alias kg='kubectl get'
|
||||||
|
alias kd='kubectl describe'
|
||||||
|
|
||||||
# Pod management.
|
# Pod management.
|
||||||
alias kgp='kubectl get pods'
|
alias kgp='kubectl get pods'
|
||||||
@@ -168,6 +170,11 @@ alias kepvc='kubectl edit pvc'
|
|||||||
alias kdpvc='kubectl describe pvc'
|
alias kdpvc='kubectl describe pvc'
|
||||||
alias kdelpvc='kubectl delete pvc'
|
alias kdelpvc='kubectl delete pvc'
|
||||||
|
|
||||||
|
# Endpoints management.
|
||||||
|
alias kged='kubectl get endpoints'
|
||||||
|
alias kgeda='kubectl get endpoints --all-namespaces'
|
||||||
|
alias kded='kubectl describe endpoints'
|
||||||
|
|
||||||
# Service account management.
|
# Service account management.
|
||||||
alias kdsa="kubectl describe sa"
|
alias kdsa="kubectl describe sa"
|
||||||
alias kdelsa="kubectl delete sa"
|
alias kdelsa="kubectl delete sa"
|
||||||
|
|||||||
Reference in new issue
Block a user