9

关于rancher集群的高可用的实验 |坐而言不如起而行! 二丫讲梵

 3 years ago
source link: http://www.eryajf.net/2680.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
关于rancher集群的高可用的实验 |坐而言不如起而行! 二丫讲梵
> 术业专攻 > 云计算 > rancher > <三>关于rancher集群的高可用的实验
本文预计阅读时间 2 分钟

因为前边部署的已经是ha的rancher集群,在三个节点前边,已经通过nginx代理,完成集群的ha状态。

这个时候,如果某个节点宕机,是不会影响整个集群的使用的。

这里模拟其中一个node关机。

目前三个节点分别是:

  1. 192.168.106.3
  2. 192.168.106.4
  3. 192.168.106.5

此时,把192.168.106.5shutdown关机,然后看整个集群的状态。

  1. [rancher@localhost ~]$ kubectl get node
  2. NAME STATUS ROLES AGE VERSION
  3. 192.168.106.3 Ready controlplane,etcd,worker 1h v1.11.6
  4. 192.168.106.4 Ready controlplane,etcd,worker 1h v1.11.6
  5. 192.168.106.5 NotReady controlplane,etcd,worker 1h v1.11.6

web管理界面在这中间可能有三到五分钟的反应时间,等待之后,去界面看看状态。

cd92216356995c9c.jpg

看到192.168.106.5状态异常,但是并不影响整个集群的使用。

因此,推荐使用这种ha集群进行管理。

现在再将192.168.106.5主机启动,然后回到集群查看状态。

7b65c9a76064489c.jpg

又一次回到了集群的怀抱之中。


weinxin

二丫讲梵 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明<三>关于rancher集群的高可用的实验

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK