【发布时间】:2016-06-16 05:43:59
【问题描述】:
在 AWS 上运行 Kubernetes 几天后,我的主节点死了。这是在设置 2 个不同的集群后发生的。 pod 仍在运行且可用,但无法管理/代理。
问题是为什么?或者,如何替换 AWS 上的主节点?或者,如何调试现有的?或者,我该如何使用 t2.micro 以外的东西,因为它可能太小而无法运行 master?
症状: $ kubectl 获取 pod 错误:无法从服务器读取版本:获取 https://**.###.###.###/api: dial tcp **.###.###.###:443 : 连接被拒绝
编辑: 这是我进一步调试后发现的:
goroutine 571 [running]:
net/http.func·018()
/usr/src/go/src/net/http/transport.go:517 +0x2a
net/http.(*Transport).CancelRequest(0xc2083c0630, 0xc209750d00)
/usr/src/go/src/net/http/transport.go:284 +0x97
github.com/coreos/go-etcd/etcd.func·003()
/go/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/coreos/go-etcd/etcd/requests.go:159 +0x236
created by github.com/coreos/go-etcd/etcd.(*Client).SendRequest
/go/src/github.com/GoogleCloudPlatform/kubernetes/Godeps/_workspace/src/github.com/coreos/go-etcd/etcd/requests.go:168 +0x3e3
goroutine 1 [IO wait, 12 minutes]:
net.(*pollDesc).Wait(0xc20870e760, 0x72, 0x0, 0x0)
/usr/src/go/src/net/fd_poll_runtime.go:84 +0x47
net.(*pollDesc).WaitRead(0xc20870e760, 0x0, 0x0)
/usr/src/go/src/net/fd_poll_runtime.go:89 +0x43
net.(*netFD).accept(0xc20870e700, 0x0, 0x7f4424a42008, 0xc20930a168)
/usr/src/go/src/net/fd_unix.go:419 +0x40b
net.(*TCPListener).AcceptTCP(0xc20804bec0, 0x5bccce, 0x0, 0x0)
/usr/src/go/src/net/tcpsock_posix.go:234 +0x4e
net/http.tcpKeepAliveListener.Accept(0xc20804bec0, 0x0, 0x0, 0x0, 0x0)
/usr/src/go/src/net/http/server.go:1976 +0x4c
net/http.(*Server).Serve(0xc20887ec60, 0x7f4424a66dc8, 0xc20804bec0, 0x0, 0x0)
/usr/src/go/src/net/http/server.go:1728 +0x92
net/http.(*Server).ListenAndServe(0xc20887ec60, 0x0, 0x0)
/usr/src/go/src/net/http/server.go:1718 +0x154
github.com/GoogleCloudPlatform/kubernetes/cmd/kube-apiserver/app.(*APIServer).Run(0xc2081f0e00, 0xc20806e0e0, 0x0, 0xe, 0x0, 0x0)
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/cmd/kube-apiserver/app/server.go:484 +0x264a
main.main()
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/cmd/kube-apiserver/apiserver.go:48 +0x154
【问题讨论】:
-
到目前为止,您在调试方面做了哪些尝试?与任何服务一样,首先要检查的是 (a) 服务是否正在运行? (b) 它是否在系统日志或应用程序日志中记录了任何错误?
-
我应该注意到,master 已经启动,但我无法 ssh 进入。我想可能是文件描述符泄漏之类的东西,但谁知道呢?
-
设置更大的master(来自浏览github)export MASTER_SIZE=XXX
-
这是我在它崩溃之前得到的错误:I0822 19:58:56.619416 7 logs.go:41] http: TLS 握手错误来自 172.20.0.0:1111: EOF
-
我有与@JuanIsFree 完全相同的问题。我想另一个值得问的相关问题是没有一个主节点,一个单点故障?有没有办法拥有多个主人,以防万一失败?
标签: kubernetes