k8s (removed from the queue).]

rancher部署集群,apiserver负责健康集群状态,docker ps查看apiserve容器r老是重启,健康检查失败,rancher一会提示删除,一会重启 怀疑指的就是apiserver,以下就是报错原因

 [controlPlane] Failed to bring up Control Plane: [Failed to verify healthcheck: Failed to check https://localhost:6443/healthz for service [kube-apiserver] on host [10.246.29.18]: Get "https://localhost:6443/healthz": dial tcp: lookup localhost on 10.197.135.52:53: read udp 10.196.153.2:38923->10.197.135.52:53: i/o t, log: I0722 09:35:13.338832 1 controller.go:132] OpenAPI AggregationController: action for item k8s_internal_local_delegation_chain_0000000000: Nothing (removed from the queue).]

应该是机器名的关系.把机器重命名一下,localhost改为ip或者新的机器名,所有服务器/etc/hosts下做下解析应该就可以了.