kubernetes集群搭建九: calicoctl

下载calicoctl

# 注意下载对应的calico的版本
wget https://github.com/projectcalico/calicoctl/releases/download/v3.2.4/calicoctl

添加执行权限

chmod +x calicoctl && mv calicoctl /usr/local/bin/

编辑calico配置文件

cat >/etc/calico/calicoctl.cfg <

测试calicotctl

[root@k8s-master-51 ~]# calicoctl node status
Calico process is running.

IPv4 BGP status
+--------------+-------------------+-------+----------+-------------+
| PEER ADDRESS |     PEER TYPE     | STATE |  SINCE   |    INFO     |
+--------------+-------------------+-------+----------+-------------+
| 10.39.7.52   | node-to-node mesh | up    | 09:01:27 | Established |
| 10.39.7.57   | node-to-node mesh | up    | 09:07:12 | Established |
+--------------+-------------------+-------+----------+-------------+

IPv6 BGP status
No IPv6 peers found.

你可能感兴趣的:(kubernetes集群搭建九: calicoctl)