在本地搭建k8s on Mesos
项目时,Mesos client
脚本要以root
身份运行。另外如果本地环境用到了proxy
,一定要注意可能(不确定是否有例外,比如也许取决于你所使用的proxy
或操作系统)需要把k8s
或者Mesos
的IP
地址加入到no-proxy/NO_PROXY
环境变量中。具体可参见下列issues
:
The kubernetes on Mesos can’t run successfully on the same machine;
Why does “km controller-manager” think it is an invalid event?;
The “km controller-manager” command doesn’t work successfully behind proxy.。
我在本地部署k8s on mesos的时候,kuberneters编译通过不了,我试了几个版本,1.0.7,1.1.1和最新的,make时都会卡住,下面是make的输出,
hack/build-go.sh
+++ [0716 18:34:36] Building go targets for linux/amd64:
cmd/kube-proxy
cmd/kube-apiserver
cmd/kube-controller-manager
cmd/kubelet
cmd/hyperkube
cmd/linkcheck
plugin/cmd/kube-scheduler
cmd/kubectl
cmd/integration
cmd/gendocs
cmd/genman
cmd/mungedocs
cmd/genbashcomp
cmd/genconversion
cmd/gendeepcopy
cmd/genswaggertypedocs
examples/k8petstore/web-server
github.com/onsi/ginkgo/ginkgo
test/e2e/e2e.test
+++ [0716 18:36:21] Placing binaries
请帮我看看,非常感谢:)
这应该是编译成功了,请参考这篇帖子:http://stackoverflow.com/questions/34083701/does-placing-binaries-mean-building-k8s-successfully。