mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-17 04:29:14 +02:00
Merge cbd08555e2 into b52dd1a425
This commit is contained in:
commit
da2fadb4a0
2 changed files with 122 additions and 120 deletions
|
|
@ -12,7 +12,7 @@ plugins=(... kubectl)
|
|||
## Aliases
|
||||
|
||||
| Alias | Command | Description |
|
||||
| :------- | :------------------------------------------------------ | :----------------------------------------------------------------------------------------------- |
|
||||
| :------------ | :------------------------------------------------------ | :----------------------------------------------------------------------------------------------- |
|
||||
| k | `kubectl` | The kubectl command |
|
||||
| kca | `kubectl --all-namespaces` | The kubectl command targeting all namespaces |
|
||||
| kaf | `kubectl apply -f` | Apply a YML file |
|
||||
|
|
@ -38,6 +38,7 @@ plugins=(... kubectl)
|
|||
| kep | `kubectl edit pods` | Edit pods from the default editor |
|
||||
| kdp | `kubectl describe pods` | Describe all pods |
|
||||
| kdelp | `kubectl delete pods` | Delete all pods matching passed arguments |
|
||||
| kclearevicted | *(complex)* | Delete all pods with Evicted status across all namespaces. |
|
||||
| | | **Service management** |
|
||||
| kgs | `kubectl get svc` | List all services in ps output format |
|
||||
| kgsw | `kgs --watch` | After listing all services, watch for changes |
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ alias kep='kubectl edit pods'
|
|||
alias kdp='kubectl describe pods'
|
||||
alias kdelp='kubectl delete pods'
|
||||
alias kgpall='kubectl get pods --all-namespaces -o wide'
|
||||
alias kclearevicted="kubectl get pods --all-namespaces -o json | jq '.items[] | select(.status.reason!=null) | select(.status.reason | contains(\"Evicted\")) | \"kubectl delete pods \(.metadata.name) -n \(.metadata.namespace)\"' | xargs -n 1 bash -c"
|
||||
|
||||
# Service management.
|
||||
alias kgs='kubectl get svc'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue