• 安装部署
  • 安装KubeSphere v3.4.0,启动ks-apiserver 失败

创建部署问题时,请参考下面模板,你提供的信息越多,越容易及时获得解答。
发帖前请点击 发表主题 右边的 预览(👀) 按钮,确保帖子格式正确。
你只花一分钟创建的问题,不能指望别人花上半个小时给你解答。

操作系统信息
虚拟机,Ubuntu22.04,8C/32G

容器运行时
containerd://1.6.21

KubeSphere版本信息
KubeSphere v3.4.0,在线安装,已有k8s环境。。

问题是什么
安装KubeSphere v3.4.0,启动ks-apiserver 失败。

文字:

kubectl logs -n kubesphere-system ks-apiserver-799c98f6c9-l6qg6

W0919 15:12:30.475474 1 client_config.go:618] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.

W0919 15:12:30.477209 1 client_config.go:618] Neither --kubeconfig nor --master was specified. Using the inClusterConfig. This might not work.

E0919 15:12:30.516885 1 cache.go:69] failed to create cache, error: dial tcp: lookup redis.kubesphere-system.svc on 10.96.0.10:53: server misbehaving

E0919 15:12:30.517232 1 run.go:74] "command failed" err="failed to create cache, error: dial tcp: lookup redis.kubesphere-system.svc on 10.96.0.10:53: server misbehaving"

    8 个月 后

    我也遇到这个问题了,我是纯离线部署,请问DNS应该配置成哪个地址?

    11 天 后

    我也遇到了,这问题真特么的奇怪,烦死了c!

    1. 利用ks-installer容器检查下dns是否正常
      kubectl -n kubesphere-system exec -it ks-installer-648b946f75-h4w8n – bash

    2. 执行nslookup -debug redis.kubesphere-system.svc.cluster.local

    3. 如果不正常,检查下coredns中dns这块是否正常

      kubectl -n kube-system get cm coredns -o yaml

    4. 最后再检查下节点上 /etc/resolv.conf 中,这块有没有设置异常的dns服务,设置成通用的8.8.8.8 或者 其他通用的dns服务