K8s需要一些依赖。 参看官方文档
https://github.com/kubernetes/community/blob/master/contributors/devel/running-locally.md
1. 需要安装 linux
2. 安装docker
wget -O- https://get.docker.com/ |bash
sudo usermod -aG docker $USER
3. 安装etcd
hack/install-etcd.sh # Installs in ./third_party/etcd
echo export PATH="\$PATH:$(pwd)/third_party/etcd" >> ~/.profile # Add to PATH
4. 安装go
sudo add-apt-repository ppa:gophers/archive
sudo apt update
sudo apt-get install golang-1.9-go
echo "export PATH=\$PATH:/usr/lib/go-1.9/bin" >> ~/.profile
source ~/.profile
5. 安装 openssl
6. 安装 CFSSL
go get -u github.com/cloudflare/cfssl/cmd/...
PATH=$PATH:$GOPATH/bin
7. 下载源码
git clone --depth=1 https://github.com/kubernetes/kubernetes.git
8. 编译安装k8s
cd kubernetes
hack/local-up-cluster.sh
=============================
参考文档:
开发者主要看看: Community 和 Documentation