美文网首页
install go and kind in Ubuntu 18

install go and kind in Ubuntu 18

作者: Chao已被使用 | 来源:发表于2020-12-03 15:08 被阅读0次

First install go:

go to your home directory and get the golang tarball using curl

cd ~

change "go1.15.2" to whatever version you want

curl -O https://dl.google.com/go/go1.15.2.linux-amd64.tar.gz

extract the download using tar

tar xvf go1.15.2.linux-amd64.tar.gz

move the go install to /usr/local

sudo chown -R root:root ./go
sudo mv go /usr/local

set up your go paths

sudo nano ~/.profile

add these at the end of the file
change "$HOME/go" to wherever you will be doing your projects

export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin

save the file and exit

apply the changes to your terminal

source ~/.profile

you're good to Go :)

Second install kind

If you have go ([1.11+]) and docker installed

GO111MODULE="on" go get sigs.k8s.io/kind@v0.9.0

set path environments

sudo mv ./kind /usr/local/bin/kind

reference: https://github.com/kubernetes-sigs/kind/issues/1553

相关文章

网友评论

      本文标题:install go and kind in Ubuntu 18

      本文链接:https://www.haomeiwen.com/subject/brvmwktx.html