Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新机器按照项目教程,离线安装遇到故障 #1429

Open
Dharma-kaya opened this issue Dec 3, 2024 · 0 comments
Open

新机器按照项目教程,离线安装遇到故障 #1429

Dharma-kaya opened this issue Dec 3, 2024 · 0 comments

Comments

@Dharma-kaya
Copy link

What happened? 发生了什么问题?

【Q1】get nodes -A 失败,kubelet 服务日志报错如下
image

  1. 按照原项目离线安装教程,节点的 kubelet 会因 apiserver 连不上而报错,而节点获取到的的 apiserver 地址是错误的 127.0.0.1。
  2. 个人分析,可能是因为这部分关于 KUBE_APISERVER 的变量值获取错误所导致。因能力有限,遂直接修改 变量初始值的两个文件之一 /etc/kubeasz/roles/kube-node/vars/main.yml 中的 127.0.0.1 为 {{ groups['kube_master'][0] }},再次安装该问题解决,节点可以 Ready。

【Q2】Q1 尝试按自己方法解决后,dashboard pod 日志报错如下
image

What did you expect to happen? 期望的结果是什么?

一套正常教程操作(无特殊处理)下去,集群服务及所有 pod 正常,Dashboard 能访问。

How can we reproduce it (as minimally and precisely as possible)? 尽可能最小化、精确地描述如何复现问题

OpenEuler 24.03,新系统,关闭防火墙,按教程离线方式部署1master(etcd)、2 node。

Anything else we need to know? 其他需要说明的情况

No response

Kubernetes version k8s 版本

1.28.2

Kubeasz version

3.6.2

OS version 操作系统版本

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

[root@k8s-master1 ~]# cat /etc/os-release
NAME="openEuler"
VERSION="24.03 (LTS)"
ID="openEuler"
VERSION_ID="24.03"
PRETTY_NAME="openEuler 24.03 (LTS)"
ANSI_COLOR="0;31"

Related plugins (CNI, CSI, ...) and versions (if applicable) 其他网络插件等需要说明的情况

默认部署 calico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Dharma-kaya and others