#新ippool # Please edit the object below. Lines beginning with a '#' will be ignored, # and an empty file will abort the edit. If an error occurs while saving this file will be # reopened with the relevant failures. # apiVersion:crd.projectcalico.org/v1 kind:IPPool metadata: annotations: projectcalico.org/metadata:'{"uid":"4af9f499-8333-4995-90d7-fbbb639a7f74","creationTimestamp":"2022-12-01T15:05:17Z"}' creationTimestamp:"2022-12-01T15:08:12Z" generation:2 name:default-ipv4-ippool resourceVersion:"3977007" uid:5fc88ba0-86e0-4d68-82d4-412537d2d1d2 spec: allowedUses: -Workload -Tunnel blockSize:24 cidr:10.245.0.0/16 ipipMode:Always natOutgoing:true nodeSelector:all() vxlanMode:Never
刚改完重启节点 使用route -n查看节点分配的IP range
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#重启后route -n 查看节点状态 [root@master1 ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 11.1.100.254 0.0.0.0 UG 100 0 0 ens192 10.244.32.0 11.1.100.133 255.255.255.0 UG 0 0 0 ens192 10.244.161.0 0.0.0.0 255.255.255.0 U 0 0 0 * 10.244.161.11 0.0.0.0 255.255.255.255 UH 0 0 0 calicadba4a333e 10.244.208.0 11.1.100.132 255.255.255.0 UG 0 0 0 ens192 10.245.32.0 11.1.100.133 255.255.255.0 UG 0 0 0 tunl0 10.245.161.0 0.0.0.0 255.255.255.0 U 0 0 0 * 10.245.161.1 0.0.0.0 255.255.255.255 UH 0 0 0 calicadba4a333e 10.245.208.0 11.1.100.132 255.255.255.0 UG 0 0 0 tunl0 11.1.100.0 0.0.0.0 255.255.255.0 U 100 0 0 ens192 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0 192.168.192.0 0.0.0.0 255.255.255.0 U 0 0 0 zt5u4rkdlr