Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
d4c939d6
Unverified
Commit
d4c939d6
authored
Mar 07, 2022
by
Eric Semeniuc
Committed by
GitHub
Mar 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(kubectl): add aliases for replicasets (#10100)
parent
3343891e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
README.md
plugins/kubectl/README.md
+5
-3
kubectl.plugin.zsh
plugins/kubectl/kubectl.plugin.zsh
+3
-1
No files found.
plugins/kubectl/README.md
View file @
d4c939d6
...
...
@@ -22,7 +22,7 @@ plugins=(... kubectl)
| kcsc |
`kubectl config set-context`
| Set a context entry in kubeconfig |
| kcdc |
`kubectl config delete-context`
| Delete the specified context from the kubeconfig |
| 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**
|
| 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 |
...
...
@@ -73,7 +73,9 @@ plugins=(... kubectl)
| 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 |
| | |
**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 |
| kru |
`kubectl rollout undo`
| Rollback to the previous revision |
| | |
**Port forwarding**
|
...
...
plugins/kubectl/kubectl.plugin.zsh
View file @
d4c939d6
...
...
@@ -112,7 +112,9 @@ function kres(){
}
# 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
kru
=
'kubectl rollout undo'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment