How to quickly view the current cluster k8s connected?

The following command

alias kc="kubectl"
alias kcgcs="kc config view --minify --output 'jsonpath={..server}'"
alias kcgcn="kc config view --minify --output 'jsonpath={..namespace}'"
alias ?='echo "[cluster] $(kcgcs)"; echo "[namespace] $(kcgcn)";'

Instructions

Guess you like

Origin www.cnblogs.com/futuretea/p/12010436.html