Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
af1709cf
Unverified
Commit
af1709cf
authored
Aug 13, 2018
by
Marc Cornellà
Committed by
GitHub
Aug 13, 2018
Browse files
kubectl: use kubectl to define aliases
This prevents conflicts with other utilities named k (see #6408).
parent
1691cf8a
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/kubectl/kubectl.plugin.zsh
View file @
af1709cf
...
...
@@ -14,53 +14,53 @@ fi
alias
k
=
kubectl
# Apply a YML file
alias
kaf
=
'k apply -f'
alias
kaf
=
'k
ubectl
apply -f'
# Drop into an interactive terminal on a container
alias
keti
=
'k exec -ti'
alias
keti
=
'k
ubectl
exec -ti'
# Manage configuration quickly to switch contexts between local, dev ad staging.
alias
kcuc
=
'k config use-context'
alias
kcsc
=
'k config set-context'
alias
kcdc
=
'k config delete-context'
alias
kccc
=
'k config current-context'
alias
kcuc
=
'k
ubectl
config use-context'
alias
kcsc
=
'k
ubectl
config set-context'
alias
kcdc
=
'k
ubectl
config delete-context'
alias
kccc
=
'k
ubectl
config current-context'
# Pod management.
alias
kgp
=
'k get pods'
alias
kep
=
'k edit pods'
alias
kdp
=
'k describe pods'
alias
kdelp
=
'k delete pods'
alias
kgp
=
'k
ubectl
get pods'
alias
kep
=
'k
ubectl
edit pods'
alias
kdp
=
'k
ubectl
describe pods'
alias
kdelp
=
'k
ubectl
delete pods'
# Service management.
alias
kgs
=
'k get svc'
alias
kes
=
'k edit svc'
alias
kds
=
'k describe svc'
alias
kdels
=
'k delete svc'
alias
kgs
=
'k
ubectl
get svc'
alias
kes
=
'k
ubectl
edit svc'
alias
kds
=
'k
ubectl
describe svc'
alias
kdels
=
'k
ubectl
delete svc'
# Ingress management
alias
kgi
=
'k get ingress'
alias
kei
=
'k edit ingress'
alias
kdi
=
'k describe ingress'
alias
kdeli
=
'k delete ingress'
alias
kgi
=
'k
ubectl
get ingress'
alias
kei
=
'k
ubectl
edit ingress'
alias
kdi
=
'k
ubectl
describe ingress'
alias
kdeli
=
'k
ubectl
delete ingress'
# Secret management
alias
kgsec
=
'k get secret'
alias
kdsec
=
'k describe secret'
alias
kdelsec
=
'k delete secret'
alias
kgsec
=
'k
ubectl
get secret'
alias
kdsec
=
'k
ubectl
describe secret'
alias
kdelsec
=
'k
ubectl
delete secret'
# Deployment management.
alias
kgd
=
'k get deployment'
alias
ked
=
'k edit deployment'
alias
kdd
=
'k describe deployment'
alias
kdeld
=
'k delete deployment'
alias
ksd
=
'k scale deployment'
alias
krsd
=
'k rollout status deployment'
alias
kgd
=
'k
ubectl
get deployment'
alias
ked
=
'k
ubectl
edit deployment'
alias
kdd
=
'k
ubectl
describe deployment'
alias
kdeld
=
'k
ubectl
delete deployment'
alias
ksd
=
'k
ubectl
scale deployment'
alias
krsd
=
'k
ubectl
rollout status deployment'
# Rollout management.
alias
kgrs
=
'k get rs'
alias
krh
=
'k rollout history'
alias
kru
=
'k rollout undo'
alias
kgrs
=
'k
ubectl
get rs'
alias
krh
=
'k
ubectl
rollout history'
alias
kru
=
'k
ubectl
rollout undo'
# Logs
alias
kl
=
'k logs'
alias
klf
=
'k logs -f'
alias
kl
=
'k
ubectl
logs'
alias
klf
=
'k
ubectl
logs -f'
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