install kubectl plugins 2022-01-29 16:09:33 Views:70 Likes:0 Comments:0 #Krew Make sure that git is installed. Run this command to download and install krew: ``` ( set -x; cd "$(mktemp -d)" && OS="$(uname | tr '[:upper:]' '[:lower:]')" && ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" && KREW="krew-${OS}_${ARCH}" && curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" && tar zxvf "${KREW}.tar.gz" && ./"${KREW}" install krew ) ``` Add the $HOME/.krew/bin directory to your PATH environment variable. To do this, update your .bashrc or .zshrc file and append the following line: export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" and restart your shell. Run kubectl krew to check the installation. #kubectx + kubens ``` export HTTP_PROXY=http://192.168.0.201:6666 export HTTPS_PROXY=http://192.168.0.201:6666 kubectl krew install ctx kubectl krew install ns ``` Loading article… Previous Mongodb Deployment Next Kafka Deployment 0 likes 70 views Weibo WeChat Tencent Weibo QQ Zone RenRen Submit Sign in to leave a comment. No Leanote account? Sign up now. 0 comments More comments
No Leanote account? Sign up now.