部署高可用集群时报错

问题描述

部署高可用集群时,出现:

phase preflight: couldn't validate the identity of the API Server: Get "https://192.168.56.120:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp 192.168.56.120:6443: connect: connection refused\nTo see the stack trace of this error execute with --v=5 or higher

可能原因

有多个master节点存在虚拟IP。

解决方法

重启master节点,使kube-vip部署的虚拟IP地址失效。