English | 简体中文
https://plugins.jetbrains.com/plugin/19316-rancher
Configure rancher and kubectl to the environment variable Path
- rancher file path: C:\userbin\rancher.exe
- kubectl file path: C:\userbin\kubectl.exe
- The environment variables are set as follows
Path=C:\userbin\
-
download https://dl.k8s.io/release/v1.27.3/bin/darwin/arm64/kubectl Save it to the PATH directory (execute in the terminal to view the corresponding directory: echo PATH)
-
https://github.com/rancher/cli/releases Download the corresponding ranger executable file from the download page and also save it in the PATH directory
mkdir -p /usr/local/bin
cd /usr/local/bin
# Add /usr/local/bin to the path ,you can see https://stackoverflow.com/questions/11025980/how-to-add-usr-local-bin-in-path-on-mac
# 删除旧文件,请自己备份.Delete old files and back them up yourself
rm -rf rancher
rm -rf kubectl
curl -LO https://github.com/rancher/cli/releases/download/v2.6.11/rancher-darwin-amd64-v2.6.11.tar.gz
tar zxvf rancher-darwin-amd64-v2.6.11.tar.gz
cp rancher-v2.6.11/rancher ./
rm -rf rancher-darwin-amd64-v2.6.11.tar.gz
## for MACOS intel CPU
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/amd64/kubectl"
## for Apple Silicon CPU
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/arm64/kubectl"
## 重启一下
reboot