📜  如何安装 kind - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:01.842000             🧑  作者: Mango

代码示例2
rm -rf /usr/local/go #Remove Previous Go Installation
sudo curl "https://dl.google.com/go/go1.17.linux-amd64.tar.gz" --output go1.17.linux-amd64.tar.gz #download golang
sudo tar -C /usr/local -xzf go1.17.linux-amd64.tar.gz # Extract and add to new Archive
echo -e '\nexport PATH=$PATH:/usr/local/go/bin' >>  $HOME/.profile # add path 
curl -Lo ./kind "https://kind.sigs.k8s.io/dl/v0.11.1/kind-$(uname)-amd64" # Download Kind
chmod +x ./kind # Change Permission
sudo mv ./kind /usr/local/go/bin/kind #Move to a recognizable Path
source $HOME/.profile #execute new path export
kind create cluster # Test