coreos kube-aws K8s 集群节点必须有一个名为 "KubernetesCluster" 的标签才能加入
coreos kube-aws K8s cluster nodes must have a Tag named "KubernetesCluster" to join
我一直在试验该脚本,似乎如果集群(不确定是只有节点还是控制器和节点)没有带有唯一值的 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
谢谢
KubernetesCluster
标签,每个集群都有一个唯一的值,对于 AWS 资源是强制性的,这样集群可以提供创建 ELB 等云功能。
本文档详述:https://github.com/kubernetes/kubernetes/blob/master/docs/design/aws_under_the_hood.md
kube-aws 确实在机器上创建了标签(包括 KubernetesCluster)或者尝试最新版本 0.9.4-rc2
我一直在试验该脚本,似乎如果集群(不确定是只有节点还是控制器和节点)没有带有唯一值的 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
谢谢
KubernetesCluster
标签,每个集群都有一个唯一的值,对于 AWS 资源是强制性的,这样集群可以提供创建 ELB 等云功能。
本文档详述:https://github.com/kubernetes/kubernetes/blob/master/docs/design/aws_under_the_hood.md
kube-aws 确实在机器上创建了标签(包括 KubernetesCluster)或者尝试最新版本 0.9.4-rc2