Calicoctl

Calicoctl


[root@masternode ~]# calicoctl get workloadendpoints
WORKLOAD? ? ? ? ? ? ? ?NODE? ? ? ? ? ? ? ? ? ? ? NETWORKS? ? ? ? ? ? INTERFACE? ? ? ? ?
test-8499f4f74-4dl8f? ?workernode2.example.com? ?172.16.14.65/32? ? ?cali84b721daf85? ?
test-8499f4f74-6t5g9? ?workernode2.example.com? ?172.16.14.66/32? ? ?calide1e3b4c727? ?
test-8499f4f74-tllx9? ?workernode1.example.com? ?172.16.133.129/32? ?cali77063a5568d? ?


[root@masternode ~]# 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: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
? ? link/ether 00:0c:29:54:7f:80 brd ff:ff:ff:ff:ff:ff
? ? inet 192.168.1.200/24 brd 192.168.1.255 scope global noprefixroute ens33
? ? ? ?valid_lft forever preferred_lft forever
? ? inet6 fe80::20c:29ff:fe54:7f80/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:d3:4d:84:e9 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: 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.246.128/32 scope global tunl0
? ? ? ?valid_lft forever preferred_lft forever
7: cali40a8be99e39@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1480 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
8: cali596f9d6edbb@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1480 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
9: cali8d91952ef88@if4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1480 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

        




[root@masternode ~]# calicoctl ipam show
+----------+---------------+-----------+------------+--------------+
| GROUPING |? ? ?CIDR? ? ? | IPS TOTAL | IPS IN USE |? ?IPS FREE? ?|
+----------+---------------+-----------+------------+--------------+
| IP Pool? | 172.16.0.0/16 |? ? ?65536 | 9 (0%)? ? ?| 65527 (100%) |
+----------+---------------+-----------+------------+--------------+?        

要查看或添加评论,请登录

Vikas Mathur的更多文章

社区洞察

其他会员也浏览了