k8s-calico

calico的官方文档的搭建失败,发现其实很简单。

k8s环境搭建完成。

使用命令下载calicoctl,

wget https://github.com/projectcalico/calicoctl/releases/download/v1.6.1/calicoctl

chmod+x calicoctl

mv calicoctl /usr/bin

然后运行命令:

calicoctl node run

上面的命令实际是一个docker的拉起命令,执行完成后就可以看到node状态了

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

IPv4 BGP status
+-----------------+-------------------+-------+----------+-------------+
| PEER ADDRESS | PEER TYPE | STATE | SINCE | INFO |
+-----------------+-------------------+-------+----------+-------------+
| 192.168.137.111 | node-to-node mesh | up | 01:05:19 | Established |
+-----------------+-------------------+-------+----------+-------------+

转载于:https://www.cnblogs.com/peterinblog/p/7714487.html

你可能感兴趣的:(k8s-calico)