参考:https://github.com/kubernetes-sigs/krew

https://int32bit.me/2019/12/05/%E5%88%86%E4%BA%AB%E5%87%A0%E4%B8%AAKubernetes%E5%AE%9E%E7%94%A8%E6%8F%92%E4%BB%B6%E5%92%8C%E5%B7%A5%E5%85%B7/

yum install git -y

2、安装krew

(
  set -x; cd "$(mktemp -d)" &&
  curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/download/v0.3.3/krew.{tar.gz,yaml}" &&
  tar zxvf krew.tar.gz &&
  KREW=./krew-"$(uname | tr '[:upper:]' '[:lower:]')_amd64" &&
  "$KREW" install --manifest=krew.yaml --archive=krew.tar.gz &&
  "$KREW" update
)

3、添加环境变量

export 'PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"'  >> ~/.bashrc
source ~/.bashrc

 

相关文章:

  • 2021-05-25
  • 2021-08-30
  • 2022-01-22
  • 2021-05-27
  • 2021-07-17
  • 2021-06-26
  • 2021-07-24
猜你喜欢
  • 2021-09-29
  • 2021-10-21
  • 2021-12-18
  • 2021-11-21
  • 2022-01-16
  • 2021-08-22
  • 2021-11-03
相关资源
相似解决方案