1.go环境安装

go下载:
tar -xzvf go1.16.6.linux-amd64.tar.gz -C /usr/local/
vim /etc/profile
新增:PATH=$PATH:/usr/local/go/bin
source /etc/profile

2.kubernetes下载

https://github.com/kubernetes/kubernetes/archive/refs/tags/v1.19.13.tar.gz

各版本下载地址:https://github.com/kubernetes/kubernetes/releases

tar -xzvf kubernetes-1.19.13.tar.gz
cd kubernetes-1.19.13.tar.gz
make
cd _output/bin/
cp kubeadm /usr/bin
cp kube* /usr/bin

 

 注:github上有提供只需docker环境安装

git clone https://github.com/kubernetes/kubernetes

cd kubernetes

make quick-release