亲测有效
1、安装brew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
参考:
https://zhuanlan.zhihu.com/p/111014448
https://www.cnblogs.com/liyihua/p/12753163.html
2、安装docker
brew install --cask --appdir=/Applications docker
参考:https://www.runoob.com/docker/macos-docker-install.html
3、安装kubectl
https://kubernetes.io/zh-cn/docs/tasks/tools/install-kubectl-linux/
4、kubectl 自动补全
5、安装k9s
参考: https://www.csdn.net/tags/NtzaUg4sOTg5NzItYmxvZwO0O0OO0O0O.html
wget https://github.com/derailed/k9s/releases/download/v0.25.18/k9s_Linux_x86_64.tar.gz
tar -zxf k9s_Linux_x86_64.tar.gz -C /usr/local/bin
k9s info