Update k8s commands

This commit is contained in:
Rob Watson 2022-06-09 05:49:10 +02:00
parent 285f9d704f
commit 86644d6d69
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ set -euo pipefail
context=$(kubectl config get-contexts -o name | fzf)
if [ $? -ne 0 ]; then
exit 0
exit $?
fi
kubectl config use-context "$context"

2
zshrc
View File

@ -90,7 +90,7 @@ alias kg="kubectl get"
alias kgp="kubectl get pod -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}}' }
alias kw="kubectl get events -w --sort-by='.metadata.creationTimestamp'"
alias kw="kubectl get events -w"
alias k9="kill -9"
alias ll="exa -l --group-directories-first --git"
alias ls="exa --color=auto"