mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
Add port-forwarding to kubectl aliases
I use this shortcut a lot every day
This commit is contained in:
parent
2ff9560ad3
commit
98c2520ed1
1 changed files with 4 additions and 1 deletions
|
|
@ -12,7 +12,10 @@ alias k=kubectl
|
||||||
# Drop into an interactive terminal on a container
|
# Drop into an interactive terminal on a container
|
||||||
alias keti='k exec -ti'
|
alias keti='k exec -ti'
|
||||||
|
|
||||||
# Manage configuration quickly to switch contexts between local, dev ad staging.
|
# Forward a local port to a pod
|
||||||
|
alias kpf='k port-forward'
|
||||||
|
|
||||||
|
# Manage configuration quickly to switch contexts between local, dev and staging.
|
||||||
alias kcuc='k config use-context'
|
alias kcuc='k config use-context'
|
||||||
alias kcsc='k config set-context'
|
alias kcsc='k config set-context'
|
||||||
alias kcdc='k config delete-context'
|
alias kcdc='k config delete-context'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue