Kubernetes API Pod拒绝连接

帕拉加

我目前正在尝试使用CoreOS和Kubernetes设置一个小型集群。首先,我正在关注教程。我有三台使用流浪汉的CoreOS计算机在VirtualBox上运行。我到达了教程的第二步,但被卡住了。

我似乎可以使用来启动kubelet systemctl start kubelet,但似乎无法连接到API服务器。似乎好像没有启动API服务器,而是尝试先连接到它。

当我进入时curl http://127.0.0.1:8080/version,我会curl: (7) Failed to connect to 127.0.0.1 port 8080: Connection refused回来。

Journalctl只是向我显示kubelet正在尝试连接到API服务器,并且由于无法访问API服务器,因此我无法使用kubectl来查看Pod的状态。我该如何解决这个问题?

编辑:

我手动执行了docker命令,并返回了以下信息:

I1109 09:30:18.680796       1 plugins.go:69] No cloud provider specified.
I1109 09:30:18.826523       1 master.go:273] Node port range unspecified. Defaulting to 30000-32767.
E1109 09:30:18.847815       1 reflector.go:136] Failed to list *api.ResourceQuota: Get http://127.0.0.1:8080/api/v1/resourcequotas: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:18.848277       1 reflector.go:136] Failed to list *api.Secret: Get http://127.0.0.1:8080/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:18.848581       1 reflector.go:136] Failed to list *api.ServiceAccount: Get http://127.0.0.1:8080/api/v1/serviceaccounts: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:18.848766       1 reflector.go:136] Failed to list *api.LimitRange: Get http://127.0.0.1:8080/api/v1/limitranges: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:18.848943       1 reflector.go:136] Failed to list *api.Namespace: Get http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:18.849698       1 reflector.go:136] Failed to list *api.Namespace: Get http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection refused
[restful] 2015/11/09 09:30:18 log.go:30: [restful/swagger] listing is available at https://172.17.8.101:443/swaggerapi/
[restful] 2015/11/09 09:30:18 log.go:30: [restful/swagger] https://172.17.8.101:443/swaggerui/ is mapped to folder /swagger-ui/
E1109 09:30:19.849251       1 reflector.go:136] Failed to list *api.Secret: Get http://127.0.0.1:8080/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:19.850278       1 reflector.go:136] Failed to list *api.ResourceQuota: Get http://127.0.0.1:8080/api/v1/resourcequotas: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:19.852294       1 reflector.go:136] Failed to list *api.ServiceAccount: Get http://127.0.0.1:8080/api/v1/serviceaccounts: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:19.852462       1 reflector.go:136] Failed to list *api.LimitRange: Get http://127.0.0.1:8080/api/v1/limitranges: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:19.852802       1 reflector.go:136] Failed to list *api.Namespace: Get http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:19.854201       1 reflector.go:136] Failed to list *api.Namespace: Get http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:20.852158       1 reflector.go:136] Failed to list *api.Secret: Get http://127.0.0.1:8080/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:20.852217       1 reflector.go:136] Failed to list *api.ResourceQuota: Get http://127.0.0.1:8080/api/v1/resourcequotas: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:20.853732       1 reflector.go:136] Failed to list *api.ServiceAccount: Get http://127.0.0.1:8080/api/v1/serviceaccounts: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:20.854456       1 reflector.go:136] Failed to list *api.LimitRange: Get http://127.0.0.1:8080/api/v1/limitranges: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:20.855127       1 reflector.go:136] Failed to list *api.Namespace: Get http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:20.855954       1 reflector.go:136] Failed to list *api.Namespace: Get http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection refused

... Repeated many times ...

E1109 09:30:35.882091       1 reflector.go:136] Failed to list *api.Namespace: Get http://127.0.0.1:8080/api/v1/namespaces: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:36.082552       1 reflector.go:136] Failed to list *api.Secret: Get http://127.0.0.1:8080/api/v1/secrets?fieldSelector=type%3Dkubernetes.io%2Fservice-account-token: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:36.282562       1 reflector.go:136] Failed to list *api.ResourceQuota: Get http://127.0.0.1:8080/api/v1/resourcequotas: dial tcp 127.0.0.1:8080: connection refused
E1109 09:30:36.482611       1 reflector.go:136] Failed to list *api.ServiceAccount: Get http://127.0.0.1:8080/api/v1/serviceaccounts: dial tcp 127.0.0.1:8080: connection refused
F1109 09:30:36.664838       1 controller.go:80] Unable to perform initial IP allocation check: unable to refresh the service IP block: 501: All the given peers are not reachable (failed to propose on members [172.17.8.101 172.17.8.102 172.17.8.103] twice [last error: Get 172.17.8.103/v2/keys/registry/ranges/serviceips?quorum=false&recursive=false&sorted=false: unsupported protocol scheme ""]) [0]
帕拉加

我暂时放弃了此设置。我认为这与ssl设置中的配置错误有关。现在,我只使用指南和上述教程,并从配置文件中删除了所有与ssl相关的内容。现在,这给了我一个可行的设置。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

从Kubernetes Pod开放端口拒绝连接

来自分类Dev

Kubernetes MLflow服务Pod连接

来自分类Dev

Kubernetes API:向Pod添加标签

来自分类Dev

Kubernetes使用api观看Pod活动

来自分类Dev

Kubernetes API:列出带有标签的Pod

来自分类Dev

从C#中的Pod访问Kubernetes API

来自分类Dev

在 Gitlab 中连接到 Kubernetes Executor 的 kubernetes API

来自分类Dev

Skype API连接被拒绝

来自分类常见问题

无法从集群内部连接到kubernetes API

来自分类Dev

连接被拒绝到 Kubernetes 中的 etcd

来自分类Dev

Kubernetes:从pod连接到外部世界

来自分类Dev

尝试从Pod访问Kubernetes API时出现403禁止错误

来自分类Dev

用于创建Pod的Kubernetes /容器引擎HTTP API

来自分类Dev

在Azure环境中从Pod访问Kubernetes API的问题

来自分类Dev

在 kubernetes 中连接 Flask pod 和 mongodb pod。

来自分类Dev

Nest Rest API连接被拒绝

来自分类Dev

Kubernetes API服务器断开监视连接

来自分类Dev

Airflow Scheduler无法连接到Kubernetes服务API

来自分类Dev

来自 Kubernetes 部署的 Google Cloud Bucket 连接使用 Storage API

来自分类Dev

Kubernetes准备就绪Probe返回“连接拒绝”

来自分类Dev

Kubernetes NAT流服务器-连接被拒绝

来自分类Dev

Kubernetes入口502错误的网关连接被拒绝

来自分类Dev

Kubernetes。无法从主机连接到任何Pod

来自分类Dev

基于初始连接将流量直接传输到Kubernetes Pod

来自分类Dev

如何从Kubernetes Pod连接到私有IP

来自分类Dev

Pod 未与具有相同标签的服务连接 - Kubernetes

来自分类Dev

没有kubernetes API的情况下,如何在kubernetes副本集中的pod相互发现和对话?

来自分类Dev

Cordova Angular拒绝Web Api连接

来自分类Dev

IIS 上的 Web API 表示连接被拒绝

Related 相关文章

热门标签

归档