K8s Tools

Libraries

Kubeconfig

Create new directory

$ mkdir ~/.kubeconfigs

Copy and put all configs file into the directory

Edit the .bashrc, .bash_profile, .zshrc and add the below code

KUBECONFIG=""
for i in $HOME/.kubeconfigs/*; do
KUBECONFIG="$KUBECONFIG:${i}"
done
export KUBECONFIG

Kube-ps1 (Optional)

This tool use for display the current cluster.

Edit the .bashrc, .bash_profile, .zshrc and add the below code

source /usr/local/Cellar/kube-ps1/0.6.0/share/kube-ps1.sh
export PROMPT='$(kube_ps1)'$PROMPT