labring / sealos

Sealos is a production-ready Kubernetes distribution. You can run any Docker image on sealos, start high availability databases like mysql/pgsql/redis/mongo, develop applications using any Programming language.
https://cloud.sealos.io
Apache License 2.0
13.89k stars 2.07k forks source link

failed to init init master0 failed, error: exit status 1. Please clean and reinstall #3711

Closed victory460 closed 1 year ago

victory460 commented 1 year ago

Sealos Version

4.1.7

How to reproduce the bug?

No response

What is the expected behavior?

[root@XCDCP-2023-P2F1-TPOD1-PM-B1H-2 k8s_installers]# sealos run localhost/labring/kubernetes:v1.21.5 --single 2023-08-18T14:57:39 info Start to create a new cluster: master [100.70.78.2], worker [], registry 100.70.78.2 2023-08-18T14:57:39 info Executing pipeline Check in CreateProcessor. 2023-08-18T14:57:39 info checker:hostname [100.70.78.2:22] 2023-08-18T14:57:39 info checker:timeSync [100.70.78.2:22] 2023-08-18T14:57:39 info Executing pipeline PreProcess in CreateProcessor. 2023-08-18T14:57:39 info Executing pipeline RunConfig in CreateProcessor. 2023-08-18T14:57:39 info Executing pipeline MountRootfs in CreateProcessor. 2023-08-18T14:57:40 info Executing pipeline MirrorRegistry in CreateProcessor. 2023-08-18T14:57:40 info Executing pipeline Bootstrap in CreateProcessor which: no docker in (/usr/share/Modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/Arcconf:/root/bin) INFO [2023-08-18 14:57:47] >> check root,port,cri success chmod: cannot operate on dangling symlink '/usr/bin/policytool' Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /etc/systemd/system/containerd.service. INFO [2023-08-18 14:57:49] >> Health check containerd! INFO [2023-08-18 14:57:49] >> containerd is running INFO [2023-08-18 14:57:49] >> init containerd success chmod: cannot operate on dangling symlink '/usr/bin/policytool' Created symlink /etc/systemd/system/multi-user.target.wants/image-cri-shim.service → /etc/systemd/system/image-cri-shim.service. INFO [2023-08-18 14:57:50] >> Health check image-cri-shim! INFO [2023-08-18 14:57:50] >> image-cri-shim is running INFO [2023-08-18 14:57:50] >> init shim success

error execution phase wait-control-plane: couldn't initialize a Kubernetes cluster To see the stack trace of this error execute with --v=5 or higher 2023-08-18T15:02:08 error Applied to cluster error: failed to init init master0 failed, error: exit status 1. Please clean and reinstall Error: failed to init init master0 failed, error: exit status 1. Please clean and reinstall

What do you see instead?

No response

Operating environment

- Sealos version:
- Docker version:
- Kubernetes version: v1.21.5
- Operating system:
- Runtime environment:
- Cluster size:
- Additional information:

Additional information

No response

cuisongliu commented 1 year ago

升级sealos https://github.com/labring/sealos/blob/main/docs/4.0/i18n/zh-Hans/lifecycle-management/QA.md#q2报错error-fileavailable--etc-kubernetes-kubeletconf-etckuberneteskubeletconf-already-exists

sealos-ci-robot commented 1 year ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Upgrade sealos https://github.com/labring/sealos/blob/main/docs/4.0/i18n/zh-Hans/lifecycle-management/QA.md#q2 error error-fileavailable--etc-kubernetes-kubeletconf-etckuberneteskubeletconf -already-exists

SupRenekton commented 3 months ago

请问下,这个问题解决了么,我也碰到一样的问题了,用的国产麒麟sp3操作系统部署k8s出现了和你一样的问题,api-server,etcd,schedule这些静态pod拉不起来,然后kubelet报错getting node master01 not found

sealos-ci-robot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Please tell me, has this problem been solved? I also encountered the same problem. I used the domestic Kirin sp3 operating system to deploy k8s and had the same problem as you. The static pods such as api-server, etcd, and schedule could not be pulled up, and then kubelet reports error getting node master01 not found

SupRenekton commented 3 months ago

请问下,这个问题解决了么,我也碰到一样的问题了,用的国产麒麟sp3操作系统部署k8s出现了和你一样的问题,api-server,etcd,schedule这些静态pod拉不起来,然后kubelet报错getting node master01 not found

sealos-ci-robot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Please tell me, has this problem been solved? I also encountered the same problem. I used the domestic Kirin sp3 operating system to deploy k8s and had the same problem as you. The static pods such as api-server, etcd, and schedule could not be pulled up, and then kubelet reports error getting node master01 not found