【问题标题】:Error from server: dial tcp i/o timeout error when getting logs of pod来自服务器的错误:获取 pod 日志时拨打 tcp i/o 超时错误
【发布时间】:2015-12-04 13:34:14
【问题描述】:

我正在开发 OpenShift Origin 1.1(它使用 kubernetes 作为 docker 容器的编排工具)。我正在创建 pod,但我看不到构建日志。

[user@ip master]# oc get pods
NAME           READY     STATUS      RESTARTS   AGE
test-1-build   0/1       Completed   0          14m
test-1-iok8n   1/1       Running     0          12m
[user@ip master]# oc logs test-1-iok8n
Error from server: Get https://ip-10-0-x-x.compute.internal:10250/containerLogs/test/test-1-iok8n/test: dial tcp 10.0.x.x:10250: i/o timeout

我的/var/logs/messages 显示:

Dec  4 13:28:24 ip-10-0-x-x origin-master: E1204 13:28:24.579794   32518 apiserver.go:440] apiserver was unable to write a JSON response: Get https://ip-10-0-x-x.compute.internal:10250/containerLogs/test/test-1-iok8n/test: dial tcp 10.0.x.x:10250: i/o timeout
Dec  4 13:28:24 ip-10-0-x-x origin-master: E1204 13:28:24.579822   32518 errors.go:62] apiserver received an error that is not an unversioned.Status: Get https://ip-10-0-x-x.compute.internal:10250/containerLogs/test/test-1-iok8n/test: dial tcp 10.0.x.x:10250: i/o timeout

我的版本是:

origin v1.1.0.1-1-g2c6ff4b
kubernetes v1.1.0-origin-1107-g4c8e6f4
etcd 2.1.2

【问题讨论】:

标签: timeout kubernetes openshift-origin


【解决方案1】:

我忘记打开端口 10250 (tcp)(在我的 aws 安全组中)。 这是我唯一的问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-01-23
    • 2018-09-12
    • 2016-05-13
    • 2019-01-31
    • 1970-01-01
    • 2018-04-18
    • 2019-08-21
    • 2022-01-22
    相关资源
    最近更新 更多