报错信息
kubectl describe pod -n kube-system calico-node-c8557
服务器信息
- debian 10
- Docker version 20.10.16, build aa7e414
- kubekey 2.0.0
- kubesphere v3.2.1
- kubernetes v1.21.5
- swapoff -a;iptables -F;防火墙已关;selinux已关
- kubekey配置文件
#config-sample.yaml
apiVersion: kubekey.kubesphere.io/v1alpha2
kind: Cluster
metadata:
name: sample
spec:
hosts:
- {name: master, address: 10.198.255.94, internalAddress: 10.198.255.94, user: root, password: "123"}
- {name: node1, address: 10.198.255.96, internalAddress: 10.198.255.96, user: root, password: "123"}
- {name: node2, address: 10.198.255.98, internalAddress: 10.198.255.98, user: root, password: "123"}
roleGroups:
etcd:
- master
control-plane:
- master
worker:
- node1
- node2
controlPlaneEndpoint:
## Internal loadbalancer for apiservers
# internalLoadbalancer: haproxy
domain: lb.kubesphere.local
address: ""
port: 6443
kubernetes:
version: v1.21.5
clusterName: cluster.local
network:
plugin: calico
kubePodsCIDR: 10.233.64.0/18
kubeServiceCIDR: 10.233.0.0/18
## multus support. https://github.com/k8snetworkplumbingwg/multus-cni
multusCNI:
enabled: false
registry:
plainHTTP: false
privateRegistry: ""
namespaceOverride: ""
registryMirrors: []
insecureRegistries: []
addons: []
root@n198-255-094:~/ks# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:00:00:4d:e4:e4 brd ff:ff:ff:ff:ff:ff
inet 10.198.255.94/22 brd 10.198.255.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fdbd:dc01:20:ffff:10:198:255:94/80 scope global
valid_lft forever preferred_lft forever
inet6 fe80::200:ff:fe4d:e4e4/64 scope link
valid_lft forever preferred_lft forever
3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default
link/ether 02:42:fb:ef:2e:d9 brd ff:ff:ff:ff:ff:ff
inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
valid_lft forever preferred_lft forever
4: nodelocaldns: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default
link/ether 06:d6:e1:1c:16:ba brd ff:ff:ff:ff:ff:ff
inet 169.254.25.10/32 brd 169.254.25.10 scope global nodelocaldns
valid_lft forever preferred_lft forever
5: kube-ipvs0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default
link/ether 32:c1:06:93:5f:1b brd ff:ff:ff:ff:ff:ff
inet 10.233.0.3/32 scope global kube-ipvs0
valid_lft forever preferred_lft forever
inet 10.233.0.1/32 scope global kube-ipvs0
valid_lft forever preferred_lft forever
inet 10.233.43.184/32 scope global kube-ipvs0
valid_lft forever preferred_lft forever
inet 10.233.59.217/32 scope global kube-ipvs0
valid_lft forever preferred_lft forever
inet 10.233.46.147/32 scope global kube-ipvs0
valid_lft forever preferred_lft forever
inet 10.233.26.243/32 scope global kube-ipvs0
valid_lft forever preferred_lft forever
inet 10.233.54.129/32 scope global kube-ipvs0
valid_lft forever preferred_lft forever
inet 10.233.28.99/32 scope global kube-ipvs0
valid_lft forever preferred_lft forever
inet 10.233.17.193/32 scope global kube-ipvs0
valid_lft forever preferred_lft forever
inet 10.233.41.196/32 scope global kube-ipvs0
valid_lft forever preferred_lft forever
inet 10.233.12.118/32 scope global kube-ipvs0
valid_lft forever preferred_lft forever
6: tunl0@NONE: <NOARP,UP,LOWER_UP> mtu 1440 qdisc noqueue state UNKNOWN group default qlen 1000
link/ipip 0.0.0.0 brd 0.0.0.0
inet 10.233.70.0/32 scope global tunl0
valid_lft forever preferred_lft forever
424: calie034168d3fc@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1440 qdisc noqueue state UP group default
link/ether ee:ee:ee:ee:ee:ee brd ff:ff:ff:ff:ff:ff link-netnsid 1
inet6 fe80::ecee:eeff:feee:eeee/64 scope link
valid_lft forever preferred_lft forever
427: calia058004280d@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1440 qdisc noqueue state UP group default
link/ether ee:ee:ee:ee:ee:ee brd ff:ff:ff:ff:ff:ff link-netnsid 2
inet6 fe80::ecee:eeff:feee:eeee/64 scope link
valid_lft forever preferred_lft forever
213: cali32edc5f4d20@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1440 qdisc noqueue state UP group default
link/ether ee:ee:ee:ee:ee:ee brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet6 fe80::ecee:eeff:feee:eeee/64 scope link
valid_lft forever preferred_lft forever
其他尝试
https://blog.csdn.net/MrFDd/article/details/123358476
kubectl edit daemonset -n kube-system calico-node修改
- name: IP_AUTODETECTION_METHOD value: “interface=eth0” 无果