[root@test-shiyan ~]# sealer run docker.io/sealerio/kubernetes:v1.20.4-sealerio-2 --masters 172.20.57.108,172.20.58.189,172.20.58.88 --nodes 172.20.59.176,172.20.59.212,172.20.58.164
报错:
2023-02-16 15:46:27 [ERROR] [root.go:75] sealer-v0.9.1: failed to found kubeadm config from /var/lib/sealer/data/my-cluster/rootfs/etc/kubeadm.yml: failed to open configfile(/var/lib/sealer/data/my-cluster/rootfs/etc/kubeadm.yml): open /var/lib/sealer/data/my-cluster/rootfs/etc/kubeadm.yml: no such file or directory
What happen?
问题:6个节点安装kubernetes v1.20.4失败,提示找不到/var/lib/sealer/data/my-cluster/rootfs/etc/kubeadm.yml文件,查看安装工具未创建目录/var/lib/sealer/data/my-cluster/rootfs/etc/和拷贝相应的文体,检查镜像中有etc目录和kubeadm.yml文件。
使用kubernetes v.1.22.15版本安装存在相同的报错,无法安装成功。
[root@test-shiyan ~]# sealer run docker.io/sealerio/kubernetes:v1.20.4-sealerio-2 --masters 172.20.57.108,172.20.58.189,172.20.58.88 --nodes 172.20.59.176,172.20.59.212,172.20.58.164
报错: 2023-02-16 15:46:27 [ERROR] [root.go:75] sealer-v0.9.1: failed to found kubeadm config from /var/lib/sealer/data/my-cluster/rootfs/etc/kubeadm.yml: failed to open configfile(/var/lib/sealer/data/my-cluster/rootfs/etc/kubeadm.yml): open /var/lib/sealer/data/my-cluster/rootfs/etc/kubeadm.yml: no such file or directory
镜像中kubeadm.yml文件: [root@test-shiyan ~]# ls /var/lib/containers/storage/overlay/84e5ad09f6a2b1c1036394472a17e60986aea6b97f3f4c59e92c7a7e3446f6e5/merged/etc 10-kubeadm.conf docker.service kubeadm.yml kubelet.service daemon.json kubeadm kubeadm.yml.tmpl registry_config.yml [root@test-shiyan ~]# grep kubernetesVersion /var/lib/containers/storage/overlay/84e5ad09f6a2b1c1036394472a17e60986aea6b97f3f4c59e92c7a7e3446f6e5/merged/etc/kubeadm.yml kubernetesVersion: v1.20.4
Relevant log output?
What you expected to happen?
使用sealer0.91版本能成功正常安装kubernetes v1.20.4, v1.22.15版本的集群
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.9.1","gitCommit":"9934e11","buildDate":"2023-01-17 11:30:38","goVersion":"go1.17.13","compiler":"gc","platform":"linux/amd64"}
What is your OS environment?
CentOS Linux release 7.8.2003 (Core)
What is the Kernel version?
Linux test-shiyan.cecdat.com 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Other environment you want to tell us?
No response