Toggle navigation
Home
安装部署
Archives
Tags
install kubectl plugins
2022-01-29 08:09:33
21
0
0
louyj
#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 ```
Pre:
Mongodb Deployment
Next:
Kafka Deployment
0
likes
21
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.