kubernetes源码下载编译

1.go环境安装

go下载: https://studygolang.com/dl/golang/go1.16.6.linux-amd64.tar.gz 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

kubernetes源码下载编译

 

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

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

cd kubernetes

make quick-release

 

 

上一篇:keepalived 源码编译


下一篇:【Linux】项目部署