Calico切换网络模式无效
-
Calico由原先的BGP模式切换为IP IP模式发现未生效,使用的模式还是BGP模式
,Calico卸载后查询Etcd发现存在很多Calico数据
[root@k8s-master-1 ~]# etcdctl get / --prefix --keys-only | grep calico
/calico/ipam/v2/assignment/ipv4/block/172.16.109.64-26
/calico/ipam/v2/assignment/ipv4/block/172.16.196.0-26
/calico/ipam/v2/config
/calico/ipam/v2/host/k8s-master-1/ipv4/block/172.16.196.0-26
/calico/ipam/v2/host/k8s-node-1/ipv4/block/172.16.109.64-26
/calico/resources/v3/projectcalico.org/clusterinformations/default
/calico/resources/v3/projectcalico.org/felixconfigurations/default
/calico/resources/v3/projectcalico.org/felixconfigurations/node.k8s-master-1
....................
# 删除相关数据
[root@k8s-master-1 ~]# etcdctl del --prefix /calico
53
- 删除Calico数据后,重新安装Calico IPIP模式,查询现在宿主机的网卡信息,
当tunl0网卡被分配后IP说明就是正常的了
[root@k8s-master-1 ~]# ip addr
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: ens160: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:0c:29:b1:02:f0 brd ff:ff:ff:ff:ff:ff
altname enp2s0
inet 192.168.0.11/24 brd 192.168.0.255 scope global noprefixroute ens160
valid_lft forever preferred_lft forever
inet6 fe80::20c:29ff:feb1:2f0/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: tunl0@NONE: <NOARP,UP,LOWER_UP> mtu 1480 qdisc noqueue state UNKNOWN group default qlen 1000
link/ipip 0.0.0.0 brd 0.0.0.0
inet 172.16.196.0/32 scope global tunl0
valid_lft forever preferred_lft forever
4: kube-ipvs0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default
link/ether fa:89:72:a0:30:aa brd ff:ff:ff:ff:ff:ff
inet 10.96.0.1/32 scope global kube-ipvs0
valid_lft forever preferred_lft forever
文章来源地址https://www.toymoban.com/news/detail-699892.html
文章来源:https://www.toymoban.com/news/detail-699892.html
到了这里,关于Calico切换网络模式无效的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!