安装

    1. [root@ur-scm-master01 ~]# curl -O -L https://github.com/projectcalico/calicoctl/releases/download/v3.11.1/calicoctl
    2. % Total % Received % Xferd Average Speed Time Time Time Current
    3. Dload Upload Total Spent Left Speed
    4. 100 615 100 615 0 0 901 0 --:--:-- --:--:-- --:--:-- 901
    5. 100 35.9M 100 35.9M 0 0 80102 0 0:07:49 0:07:49 --:--:-- 1000k
    1. [root@ur-scm-master01 ~]# chmod +x calicoctl
    2. [root@ur-scm-master01 ~]# mv calicoctl /usr/local/bin/
    3. [root@ur-scm-master01 ~]# calicoctl node status
    4. Calico process is running.
    5. IPv4 BGP status
    6. +----------------+-------------------+-------+------------+-------------+
    7. | PEER ADDRESS | PEER TYPE | STATE | SINCE | INFO |
    8. +----------------+-------------------+-------+------------+-------------+
    9. | 192.168.13.178 | node-to-node mesh | up | 2021-09-01 | Established |
    10. | 192.168.13.179 | node-to-node mesh | up | 2021-09-01 | Established |
    11. | 192.168.13.181 | node-to-node mesh | up | 2021-09-01 | Established |
    12. | 192.168.13.182 | node-to-node mesh | up | 2021-09-01 | Established |
    13. | 192.168.13.183 | node-to-node mesh | up | 2021-10-08 | Established |
    14. +----------------+-------------------+-------+------------+-------------+
    15. IPv6 BGP status
    16. No IPv6 peers found.
    17. [root@ur-scm-master01 ~]#