kube-system pod/calico-node-9czgm 0/1 Running 3 42d
kube-system pod/calico-node-msfjk 0/1 Running 0 5m37s
...当我让“月亮”加入星团时我得到了什么,如下所述......
NAMESPACE NAME STATUS ROLES AGE VERSION
node/moon Ready <none> 5m38s v1.20.5
node/sky Ready control-plane,master 276d v1.21.2
其中, sky 的 calico 节点在加入之前和 moon 从 k8s 集群中删除之后pod/calico-node-9czgm
运行良好(1/1 就绪) 。moon
❯ kubectl logs pod/calico-node-msfjk -n kube-system -f 来自服务器的错误:获取“https://192.168.178.23:10250/containerLogs/kube-system/calico-node-msfjk/calico-node?follow=true”:拨号 tcp 192.168.178.23:10250:i/o 超时
pod/calico-node-9czgm
告诉我:
2021-07-04 20:39:38.999 [INFO][72] felix/ipsets.go 760: Doing full IP set rewrite family="inet" numMembersInPendingReplace=2 setID="all-hosts-net"
bird: Reconfiguration requested by SIGHUP
bird: Reconfiguring
bird: device1: Reconfigured
bird: direct1: Reconfigured
bird: Reconfigured
2021-07-04 20:39:39.023 [INFO][76] confd/resource.go 277: Target config /etc/calico/confd/config/bird.cfg has been updated due to change in key: /calico/bgp/v1/host
2021-07-04 20:39:43.185 [INFO][76] confd/client.go 897: Recompute BGP peerings: HostBGPConfig(node=moon; name=ip_addr_v4) updated; HostBGPConfig(node=moon; name=network_v4) updated
bird: Reconfiguration requested by SIGHUP
bird: Reconfiguring
bird: device1: Reconfigured
bird: direct1: Reconfigured
bird: Adding protocol Mesh_192_168_178_23
bird: Mesh_192_168_178_23: Initializing
bird: Mesh_192_168_178_23: Starting
bird: Mesh_192_168_178_23: State changed to start
bird: Reconfigured
2021-07-04 20:39:43.198 [INFO][76] confd/resource.go 277: Target config /etc/calico/confd/config/bird.cfg has been updated due to change in key: /calico/bgp/v1/host
2021-07-04 20:39:53.134 [INFO][72] felix/summary.go 100: Summarising 13 dataplane reconciliation loops over 1m1.6s: avg=14ms longest=77ms ()
2021-07-04 20:40:11.444 [INFO][74] monitor-addresses/startup.go 774: Using autodetected IPv4 address on interface eth0: 88.99.99.99/32
IP 192.168.178.23 属于我的笔记本 WiFi 接口。因此,显然我需要用我的公共 IP 覆盖本地接口 IP,我尝试通过--node-ip=93.93.17.11
in执行此操作/etc/systemd/system/kubelet.service.d/kubeadm.conf
,但一切仍然中断,并且 kubelet 还报告:
7 月 4 日 22:58:43 moon kubelet[92613]: E0704 22:58:43.610441 92613 kubelet_node_status.go:586] 无法设置某些节点状态字段:无法验证 nodeIP:节点 IP:在主机的网络接口中未找到“93.93.17.11”
我在 Fedora 34 上使用 K8s v1.20.5 和 cri-o v1.20。