安装环境:
- Linux (自用ubuntu14.04)
- Docker 1.3+
- go 1.3+
- etcd
安装
从github上下载源码
$ git clone https://github.com/kubernetes/kubernetes.git
$ cd kubernetes
有两种安装方法,二选其一,前者方便快捷,后者因要运行测试等,花费时间较长。
1.Build just linux binaries in the container. Pass options and packages as necessary
$ hack/build-go.sh
2.Build everything, test it, and (optionally) upload the results to a GCS bucket
$ build/release.sh
$ cp _output/dockerized/bin/linux/amd64/kube* /usr/bin
查看安装情况
$ kubectl version
提示
[root@root]# Client Version: version.Info{Major: