Update k8s commands
This commit is contained in:
parent
285f9d704f
commit
86644d6d69
|
@ -3,7 +3,7 @@ set -euo pipefail
|
||||||
|
|
||||||
context=$(kubectl config get-contexts -o name | fzf)
|
context=$(kubectl config get-contexts -o name | fzf)
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
exit 0
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
kubectl config use-context "$context"
|
kubectl config use-context "$context"
|
||||||
|
|
2
zshrc
2
zshrc
|
@ -90,7 +90,7 @@ alias kg="kubectl get"
|
||||||
alias kgp="kubectl get pod -o wide"
|
alias kgp="kubectl get pod -o wide"
|
||||||
alias kgs="kubectl get svc -o wide"
|
alias kgs="kubectl get svc -o wide"
|
||||||
ksecd() { kubectl get secret "$1" -o go-template='{{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}' }
|
ksecd() { kubectl get secret "$1" -o go-template='{{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}' }
|
||||||
alias kw="kubectl get events -w --sort-by='.metadata.creationTimestamp'"
|
alias kw="kubectl get events -w"
|
||||||
alias k9="kill -9"
|
alias k9="kill -9"
|
||||||
alias ll="exa -l --group-directories-first --git"
|
alias ll="exa -l --group-directories-first --git"
|
||||||
alias ls="exa --color=auto"
|
alias ls="exa --color=auto"
|
||||||
|
|
Loading…
Reference in New Issue