mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
feat(kubectl): add aliases for replicasets (#10100)
This commit is contained in:
parent
3343891ea6
commit
d4c939d61e
2 changed files with 8 additions and 4 deletions
|
@ -22,7 +22,7 @@ plugins=(... kubectl)
|
||||||
| kcsc | `kubectl config set-context` | Set a context entry in kubeconfig |
|
| kcsc | `kubectl config set-context` | Set a context entry in kubeconfig |
|
||||||
| kcdc | `kubectl config delete-context` | Delete the specified context from the kubeconfig |
|
| kcdc | `kubectl config delete-context` | Delete the specified context from the kubeconfig |
|
||||||
| kccc | `kubectl config current-context` | Display the current-context |
|
| kccc | `kubectl config current-context` | Display the current-context |
|
||||||
| kcgc | `kubectl config get-contexts` | List of contexts available
|
| kcgc | `kubectl config get-contexts` | List of contexts available |
|
||||||
| | | **General aliases** |
|
| | | **General aliases** |
|
||||||
| kdel | `kubectl delete` | Delete resources by filenames, stdin, resources and names, or by resources and label selector |
|
| kdel | `kubectl delete` | Delete resources by filenames, stdin, resources and names, or by resources and label selector |
|
||||||
| kdelf | `kubectl delete -f` | Delete a pod using the type and name specified in -f argument |
|
| kdelf | `kubectl delete -f` | Delete a pod using the type and name specified in -f argument |
|
||||||
|
@ -73,7 +73,9 @@ plugins=(... kubectl)
|
||||||
| krsd | `kubectl rollout status deployment` | Check the rollout status of a deployment |
|
| krsd | `kubectl rollout status deployment` | Check the rollout status of a deployment |
|
||||||
| kres | `kubectl set env $@ REFRESHED_AT=...` | Recreate all pods in deployment with zero-downtime |
|
| kres | `kubectl set env $@ REFRESHED_AT=...` | Recreate all pods in deployment with zero-downtime |
|
||||||
| | | **Rollout management** |
|
| | | **Rollout management** |
|
||||||
| kgrs | `kubectl get rs` | To see the ReplicaSet `rs` created by the deployment |
|
| kgrs | `kubectl get replicaset` | List all ReplicaSets `rs` created by the deployment |
|
||||||
|
| kdrs | `kubectl describe replicaset` | Describe ReplicaSet in detail |
|
||||||
|
| kers | `kubectl edit replicaset` | Edit ReplicaSet from the default editor |
|
||||||
| krh | `kubectl rollout history` | Check the revisions of this deployment |
|
| krh | `kubectl rollout history` | Check the revisions of this deployment |
|
||||||
| kru | `kubectl rollout undo` | Rollback to the previous revision |
|
| kru | `kubectl rollout undo` | Rollback to the previous revision |
|
||||||
| | | **Port forwarding** |
|
| | | **Port forwarding** |
|
||||||
|
|
|
@ -112,7 +112,9 @@ function kres(){
|
||||||
}
|
}
|
||||||
|
|
||||||
# Rollout management.
|
# Rollout management.
|
||||||
alias kgrs='kubectl get rs'
|
alias kgrs='kubectl get replicaset'
|
||||||
|
alias kdrs='kubectl describe replicaset'
|
||||||
|
alias kers='kubectl edit replicaset'
|
||||||
alias krh='kubectl rollout history'
|
alias krh='kubectl rollout history'
|
||||||
alias kru='kubectl rollout undo'
|
alias kru='kubectl rollout undo'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue