Add port-forwarding to kubectl aliases
I use this shortcut a lot every day
This commit is contained in:
parent
2ff9560ad3
commit
98c2520ed1
@ -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…
Reference in New Issue
Block a user