./hack/local-up-cluster.sh 出错
Error with ./hack/local-up-cluster.sh
我一直在尝试使用 kubernetes 启动我的本地集群。我已经创建了二进制文件,并且正在 运行 以 ./hack/local-up-cluster.sh 的名称创建脚本。当我 运行 脚本时,出现此错误:
root@ubuntu1604:~/kubernetes# ./hack/local-up-cluster.sh
+++ [0215 00:22:00] Building go targets for linux/ppc64le:
cmd/kube-apiserver
cmd/kube-controller-manager
cmd/kube-proxy
cmd/kubectl
cmd/kubelet
plugin/cmd/kube-scheduler
+++ [0215 00:22:03] Placing binaries
curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused
API SERVER port is free, proceeding...
Detected host and ready to start services. Doing some housekeeping first...
Using GO_OUT /root/kubernetes/_output/local/bin/linux/ppc64le
Starting services now!
Starting etcd
etcd -data-dir /tmp/tmp.5C5e2WqxLN --bind-addr 127.0.0.1:4001 >/dev/null 2>/dev/null
Waiting for etcd to come up.
+++ [0215 00:22:03] On try 1, etcd: :
{"action":"set","node":{"key":"/_test","value":"","modifiedIndex":3,"createdIndex":3}}
Waiting for apiserver to come up
!!! [0215 00:22:13] Timed out waiting for apiserver: to answer at http://127.0.0.1:8080/api/v1/pods; tried 10 waiting 1 between each
Cleaning up...
知道我应该如何调试吗?
您的 api-server 似乎由于某种原因无法正常工作。在 /tmp/kube-apiserver.log
检查 api-服务器日志
根据评论回答你的问题。代码库中有 4 种主要测试类型:
- 单元测试(
hack/test-go.sh
):不需要本地集群运行;可以是 运行 而本地集群是 运行ning
- 集成测试(
hack/test-integration.sh
):当这些测试 时,本地集群不能运行ning
- 命令测试(
hack/test-cmd.sh
):当这些测试 时,本地集群不能运行ning
- E2E 测试 (
test/e2e/*.go
):这些测试需要本地或远程集群
我一直在尝试使用 kubernetes 启动我的本地集群。我已经创建了二进制文件,并且正在 运行 以 ./hack/local-up-cluster.sh 的名称创建脚本。当我 运行 脚本时,出现此错误:
root@ubuntu1604:~/kubernetes# ./hack/local-up-cluster.sh
+++ [0215 00:22:00] Building go targets for linux/ppc64le:
cmd/kube-apiserver
cmd/kube-controller-manager
cmd/kube-proxy
cmd/kubectl
cmd/kubelet
plugin/cmd/kube-scheduler
+++ [0215 00:22:03] Placing binaries
curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused
API SERVER port is free, proceeding...
Detected host and ready to start services. Doing some housekeeping first...
Using GO_OUT /root/kubernetes/_output/local/bin/linux/ppc64le
Starting services now!
Starting etcd
etcd -data-dir /tmp/tmp.5C5e2WqxLN --bind-addr 127.0.0.1:4001 >/dev/null 2>/dev/null
Waiting for etcd to come up.
+++ [0215 00:22:03] On try 1, etcd: :
{"action":"set","node":{"key":"/_test","value":"","modifiedIndex":3,"createdIndex":3}}
Waiting for apiserver to come up
!!! [0215 00:22:13] Timed out waiting for apiserver: to answer at http://127.0.0.1:8080/api/v1/pods; tried 10 waiting 1 between each
Cleaning up...
知道我应该如何调试吗?
您的 api-server 似乎由于某种原因无法正常工作。在 /tmp/kube-apiserver.log
检查 api-服务器日志根据评论回答你的问题。代码库中有 4 种主要测试类型:
- 单元测试(
hack/test-go.sh
):不需要本地集群运行;可以是 运行 而本地集群是 运行ning - 集成测试(
hack/test-integration.sh
):当这些测试 时,本地集群不能运行ning
- 命令测试(
hack/test-cmd.sh
):当这些测试 时,本地集群不能运行ning
- E2E 测试 (
test/e2e/*.go
):这些测试需要本地或远程集群