sealerio / sealer

Build, Share and Run Both Your Kubernetes Cluster and Distributed Applications (Project under CNCF)
http://sealer.cool
Apache License 2.0
2.06k stars 362 forks source link

dial tcp: lookup apiserver.cluster.local: no such host 创建集群报错 #1724

Closed lklkxcxc closed 2 years ago

lklkxcxc commented 2 years ago

What happen?

之前集群清理失败手动清理后,重新创建集群时候报错:root@test-shiyan docker.service.d]# sealer run -e NFSIP=172.20.52.200 -e NFSPATH=/gpfs/vmfs/nfs/k8s/pool-dev -e MASTERIP='172.20.57.108;172.20.58.189;172.20.58.88' harbor.cecdat.com/platform/kubernetes-monitor:v1.19.8 --masters 172.20.57.108,172.20.58.189,172.20.58.88 --nodes 172.20.57.108,172.20.58.189,172.20.58.88 --debug Error: Get "https://apiserver.cluster.local:6443/version?timeout=32s": dial tcp: lookup apiserver.cluster.local: no such host Usage:

Relevant log output?

No response

What you expected to happen?

No response

How to reproduce it (as minimally and precisely as possible)?

No response

Anything else we need to know?

No response

What is the version of Sealer you using?

{"gitVersion":"v0.7.1","gitCommit":"2a4d201","buildDate":"2022-03-16 06:41:35","goVersion":"go1.16.14","compiler":"gc","platform":"linux/amd64"}

What is your OS environment?

NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31"

What is the Kernel version?

3.10.0-1127.el7.x86_64

Other environment you want to tell us?

lklkxcxc commented 2 years ago

sealer节点rm -rf .kube 解决