coreos kube-aws K8s集群节点必须有一个名为“KubernetesCluster”的标签才能加入

时间:2016-11-24 08:34:37

标签: kubernetes coreos kube-aws

我一直在试验这个脚本,似乎如果集群(不确定是否只是节点或控制器和节点)没有带有唯一值的aws标签“KubernetesCluster”,那么节点似乎没有要添加到集群中,当拖尾节点journalctl -f时,您会得到以下错误作为循环:

  ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: E1124 08:04:13.577214    2195 kubelet_node_status.go:293] Unable to update node status: update node status exceeds retry count
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: E1124 08:04:14.308473    2195 eviction_manager.go:162] eviction manager: unexpected err: failed GetNode: node 'ip-11-0-0-70.eu-west-1.compute.internal' not found
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: I1124 08:04:15.694850    2195 kubelet_node_status.go:203] Setting node annotation to enable volume controller attach/detach
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: I1124 08:04:15.694877    2195 kubelet_node_status.go:245] Adding node label from cloud provider: beta.kubernetes.io/instance-type=r3.xlarge
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: I1124 08:04:15.694886    2195 kubelet_node_status.go:256] Adding node label from cloud provider: failure-domain.beta.kubernetes.io/zone=eu-west-1a
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: I1124 08:04:15.694893    2195 kubelet_node_status.go:260] Adding node label from cloud provider: failure-domain.beta.kubernetes.io/region=eu-west-1
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: W1124 08:04:15.698242    2195 kubelet.go:1788] Deleting mirror pod "kube-proxy-ip-11-0-0-70.eu-west-1.compute.internal_kube-system(85ec9262-b21c-11e6-9b4e-066c9da0e3d3)" because it is outdated
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: I1124 08:04:16.587224    2195 kubelet_node_status.go:203] Setting node annotation to enable volume controller attach/detach
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: I1124 08:04:16.587252    2195 kubelet_node_status.go:245] Adding node label from cloud provider: beta.kubernetes.io/instance-type=r3.xlarge
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: I1124 08:04:16.587261    2195 kubelet_node_status.go:256] Adding node label from cloud provider: failure-domain.beta.kubernetes.io/zone=eu-west-1a
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: I1124 08:04:16.587268    2195 kubelet_node_status.go:260] Adding node label from cloud provider: failure-domain.beta.kubernetes.io/region=eu-west-1
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: E1124 08:04:23.592830    2195 kubelet_node_status.go:301] Error updating node status, will retry: error getting node "ip-11-0-0-70.eu-west-1.compute.internal": nodes "ip-11-0-0-70.eu-west-1.compute.internal" not found
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: E1124 08:04:23.594352    2195 kubelet_node_status.go:301] Error updating node status, will retry: error getting node "ip-11-0-0-70.eu-west-1.compute.internal": nodes "ip-11-0-0-70.eu-west-1.compute.internal" not found
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: E1124 08:04:23.595353    2195 kubelet_node_status.go:301] Error updating node status, will retry: error getting node "ip-11-0-0-70.eu-west-1.compute.internal": nodes "ip-11-0-0-70.eu-west-1.compute.internal" not found
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: E1124 08:04:23.597125    2195 kubelet_node_status.go:301] Error updating node status, will retry: error getting node "ip-11-0-0-70.eu-west-1.compute.internal": nodes "ip-11-0-0-70.eu-west-1.compute.internal" not found
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: E1124 08:04:23.598994    2195 kubelet_node_status.go:301] Error updating node status, will retry: error getting node "ip-11-0-0-70.eu-west-1.compute.internal": nodes "ip-11-0-0-70.eu-west-1.compute.internal" not found
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: E1124 08:04:23.599012    2195 kubelet_node_status.go:293] Unable to update node status: update node status exceeds retry count
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: E1124 08:04:24.344163    2195 eviction_manager.go:162] eviction manager: unexpected err: failed GetNode: node 'ip-11-0-0-70.eu-west-1.compute.internal' not found
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: E1124 08:04:33.627869    2195 kubelet_node_status.go:301] Error updating node status, will retry: error getting node "ip-11-0-0-70.eu-west-1.compute.internal": nodes "ip-11-0-0-70.eu-west-1.compute.internal" not found
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: E1124 08:04:33.628985    2195 kubelet_node_status.go:301] Error updating node status, will retry: error getting node "ip-11-0-0-70.eu-west-1.compute.internal": nodes "ip-11-0-0-70.eu-west-1.compute.internal" not found
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: E1124 08:04:33.630883    2195 kubelet_node_status.go:301] Error updating node status, will retry: error getting node "ip-11-0-0-70.eu-west-1.compute.internal": nodes "ip-11-0-0-70.eu-west-1.compute.internal" not found
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: E1124 08:04:33.632268    2195 kubelet_node_status.go:301] Error updating node status, will retry: error getting node "ip-11-0-0-70.eu-west-1.compute.internal": nodes "ip-11-0-0-70.eu-west-1.compute.internal" not found
    ip-11-0-0-70.eu-west-1.compute.internal kubelet-wrapper[2195]: E1124 08:04:33.633703    2195 kubelet_node_status.go:301] Error updating node status, will retry: error getting node "ip-11-0-0-70.eu-west-1.compute.internal": nodes "ip-11-0-0-70.eu-west-1.compute.internal" not found

任何人都可以解释这种行为吗?。

kube-aws version v0.8.3

由于

2 个答案:

答案 0 :(得分:0)

对于AWS资源,KubernetesCluster标记具有每个群集的唯一值,因此群集可以提供云功能,如创建ELB。

本文档详细介绍:https://github.com/kubernetes/kubernetes/blob/master/docs/design/aws_under_the_hood.md

答案 1 :(得分:0)

kube-aws会在机器上创建标签(包括KubernetesCluster)或者尝试最新版本0.9.4-rc2