You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--cloud-version=v5.0.1
--image-registry=registry.cn-shanghai.aliyuncs.com --zh
--proxy-prefix=$PROXY_PREFIX
--cloud-domain=sealos.xinweitech.com
--cert-path=/root/ssl/cert1.pem
--key-path=/root/ssl/privkey1.pem
--master-ips=192.168.1.80
Sealos CLI 尚未安装, 是否安装? (y/n):
y
[INFO] Using v5.0.1-beta2 as release
[INFO] Using labring/sealos as your repo
[INFO] Downloading tar curl https://ghfast.top/https://github.com/labring/sealos/releases/download/v5.0.1-beta2/sealos_5.0.1-beta2_linux_amd64.tar.gz
[INFO] Downloading sealos, waiting...
######################################################################## 100.0%
sealos
[INFO] Installing sealos to /usr/bin/sealos
SealosVersion:
buildDate: "2024-09-28T08:38:26Z"
compiler: gc
gitCommit: 22d9a13
gitVersion: 5.0.1-beta2
goVersion: go1.20.14
platform: linux/amd64
依赖 iptables, 请确保 iptables 已经安装, 多节点需要配置 ssh 免密登录或密码一致, 使用 Sealos 提供的自签证书安装完成后需要自信任证书
正在拉取镜像: sealos-cloud:v5.0.1
请输入 Node IP (无 Node 节点可输入回车跳过该步骤; 多个 Node 节点使用逗号分隔, 例: 192.168.1.1,192.168.1.2,192.168.1.3): grep "sealos.hub" /etc/hosts || echo "192.168.1.80 sealos.hub" >> /etc/hosts^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H
IP无效或错误格式, 请再试一次.
请输入 Node IP (无 Node 节点可输入回车跳过该步骤; 多个 Node 节点使用逗号分隔, 例: 192.168.1.1,192.168.1.2,192.168.1.3):
请输入 ssh 私钥路径 (回车使用默认值: '/root/.ssh/id_rsa'):
请输入 ssh 密码 (回车使用免密登录):
请输入 Pod 子网 (回车使用默认值: 100.64.0.0/10):
请输入 Service 子网 (回车使用默认值: 10.96.0.0/22):
请输入 Sealos Cloud 端口 (回车使用默认值: 443): 4443^H^H^H
正在安装 Kubernetes 集群.
2025-06-06T15:58:01 info Start to create a new cluster: master [192.168.1.80], worker [], registry 192.168.1.80
2025-06-06T15:58:01 info Executing pipeline Check in CreateProcessor.
2025-06-06T15:58:01 info checker:hostname [192.168.1.80:22]
2025-06-06T15:58:01 info checker:timeSync [192.168.1.80:22]
2025-06-06T15:58:01 info checker:containerd [192.168.1.80:22]
2025-06-06T15:58:01 info Executing pipeline PreProcess in CreateProcessor.
2025-06-06T15:58:01 info Executing pipeline RunConfig in CreateProcessor.
2025-06-06T15:58:01 info Executing pipeline MountRootfs in CreateProcessor.
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/config.toml from /var/lib/sealos/data/default/rootfs/etc/config.toml.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/containerd.service from /var/lib/sealos/data/default/rootfs/etc/containerd.service.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/hosts.toml from /var/lib/sealos/data/default/rootfs/etc/hosts.toml.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/image-cri-shim.service from /var/lib/sealos/data/default/rootfs/etc/image-cri-shim.service.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/image-cri-shim.yaml from /var/lib/sealos/data/default/rootfs/etc/image-cri-shim.yaml.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/kubelet.service from /var/lib/sealos/data/default/rootfs/etc/kubelet.service.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/registry.service from /var/lib/sealos/data/default/rootfs/etc/registry.service.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/registry.yml from /var/lib/sealos/data/default/rootfs/etc/registry.yml.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/registry_config.yml from /var/lib/sealos/data/default/rootfs/etc/registry_config.yml.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/systemd/system/kubelet.service.d/10-kubeadm.conf from /var/lib/sealos/data/default/rootfs/etc/systemd/system/kubelet.service.d/10-kubeadm.conf.tmpl completed
2025-06-06T15:58:02 info Executing pipeline MirrorRegistry in CreateProcessor.
2025-06-06T15:58:02 info trying default http mode to sync images to hosts [192.168.1.80:22]
2025-06-06T15:58:03 info Executing pipeline Bootstrap in CreateProcessor
INFO [2025-06-06 15:58:03] >> Check port kubelet port 10249..10259, reserved port 5050..5054 inuse. Please wait...
INFO [2025-06-06 15:58:04] >> check root,port,cri success
2025-06-06T15:58:04 info domain sealos.hub delete success
2025-06-06T15:58:04 info domain sealos.hub:192.168.1.80 append success
INFO [2025-06-06 15:58:05] >> Health check registry!
INFO [2025-06-06 15:58:05] >> registry is running
INFO [2025-06-06 15:58:05] >> init registry success
2025-06-06T15:58:05 info domain apiserver.cluster.local delete success
2025-06-06T15:58:05 info domain apiserver.cluster.local:192.168.1.80 append success
INFO [2025-06-06 15:58:08] >> Health check containerd!
INFO [2025-06-06 15:58:08] >> containerd is running
INFO [2025-06-06 15:58:08] >> init containerd success
INFO [2025-06-06 15:58:09] >> Health check image-cri-shim!
INFO [2025-06-06 15:58:09] >> image-cri-shim is running
INFO [2025-06-06 15:58:09] >> init shim success
127.0.0.1 localhost
::1 ip6-localhost ip6-loopback
防火墙在系统启动时自动禁用
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description: Ubuntu 24.04 LTS
Release: 24.04
Linux user 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
内存: 251Gi 19Gi 85Gi 352Mi 149Gi 232Gi
用官方的安装方式报错
$ curl -sfL $PROXY_PREFIX/https://raw.githubusercontent.com/labring/sealos/v5.0.1/scripts/cloud/install.sh -o /tmp/install.sh && SEALOS_VERSION=v5.0.1 && bash /tmp/install.sh
--cloud-version=v5.0.1
--image-registry=registry.cn-shanghai.aliyuncs.com --zh
--proxy-prefix=$PROXY_PREFIX
--cloud-domain=<your_domain>
--cert-path=<your_crt>
--key-path=<your_key>
root@user:~# bash /tmp/install.sh \
依赖 iptables, 请确保 iptables 已经安装, 多节点需要配置 ssh 免密登录或密码一致, 使用 Sealos 提供的自签证书安装完成后需要自信任证书
正在拉取镜像: sealos-cloud:v5.0.1
请输入 Node IP (无 Node 节点可输入回车跳过该步骤; 多个 Node 节点使用逗号分隔, 例: 192.168.1.1,192.168.1.2,192.168.1.3): grep "sealos.hub" /etc/hosts || echo "192.168.1.80 sealos.hub" >> /etc/hosts^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H
IP无效或错误格式, 请再试一次.
请输入 Node IP (无 Node 节点可输入回车跳过该步骤; 多个 Node 节点使用逗号分隔, 例: 192.168.1.1,192.168.1.2,192.168.1.3):
请输入 ssh 私钥路径 (回车使用默认值: '/root/.ssh/id_rsa'):
请输入 ssh 密码 (回车使用免密登录):
请输入 Pod 子网 (回车使用默认值: 100.64.0.0/10):
请输入 Service 子网 (回车使用默认值: 10.96.0.0/22):
请输入 Sealos Cloud 端口 (回车使用默认值: 443): 4443^H^H^H
正在安装 Kubernetes 集群.
2025-06-06T15:58:01 info Start to create a new cluster: master [192.168.1.80], worker [], registry 192.168.1.80
2025-06-06T15:58:01 info Executing pipeline Check in CreateProcessor.
2025-06-06T15:58:01 info checker:hostname [192.168.1.80:22]
2025-06-06T15:58:01 info checker:timeSync [192.168.1.80:22]
2025-06-06T15:58:01 info checker:containerd [192.168.1.80:22]
2025-06-06T15:58:01 info Executing pipeline PreProcess in CreateProcessor.
2025-06-06T15:58:01 info Executing pipeline RunConfig in CreateProcessor.
2025-06-06T15:58:01 info Executing pipeline MountRootfs in CreateProcessor.
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/config.toml from /var/lib/sealos/data/default/rootfs/etc/config.toml.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/containerd.service from /var/lib/sealos/data/default/rootfs/etc/containerd.service.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/hosts.toml from /var/lib/sealos/data/default/rootfs/etc/hosts.toml.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/image-cri-shim.service from /var/lib/sealos/data/default/rootfs/etc/image-cri-shim.service.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/image-cri-shim.yaml from /var/lib/sealos/data/default/rootfs/etc/image-cri-shim.yaml.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/kubelet.service from /var/lib/sealos/data/default/rootfs/etc/kubelet.service.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/registry.service from /var/lib/sealos/data/default/rootfs/etc/registry.service.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/registry.yml from /var/lib/sealos/data/default/rootfs/etc/registry.yml.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/registry_config.yml from /var/lib/sealos/data/default/rootfs/etc/registry_config.yml.tmpl completed
2025-06-06T15:58:02 info render /var/lib/sealos/data/default/rootfs/etc/systemd/system/kubelet.service.d/10-kubeadm.conf from /var/lib/sealos/data/default/rootfs/etc/systemd/system/kubelet.service.d/10-kubeadm.conf.tmpl completed
2025-06-06T15:58:02 info Executing pipeline MirrorRegistry in CreateProcessor.
2025-06-06T15:58:02 info trying default http mode to sync images to hosts [192.168.1.80:22]
2025-06-06T15:58:03 info Executing pipeline Bootstrap in CreateProcessor
INFO [2025-06-06 15:58:03] >> Check port kubelet port 10249..10259, reserved port 5050..5054 inuse. Please wait...
INFO [2025-06-06 15:58:04] >> check root,port,cri success
2025-06-06T15:58:04 info domain sealos.hub delete success
2025-06-06T15:58:04 info domain sealos.hub:192.168.1.80 append success
INFO [2025-06-06 15:58:05] >> Health check registry!
INFO [2025-06-06 15:58:05] >> registry is running
INFO [2025-06-06 15:58:05] >> init registry success
2025-06-06T15:58:05 info domain apiserver.cluster.local delete success
2025-06-06T15:58:05 info domain apiserver.cluster.local:192.168.1.80 append success
INFO [2025-06-06 15:58:08] >> Health check containerd!
INFO [2025-06-06 15:58:08] >> containerd is running
INFO [2025-06-06 15:58:08] >> init containerd success
INFO [2025-06-06 15:58:09] >> Health check image-cri-shim!
INFO [2025-06-06 15:58:09] >> image-cri-shim is running
INFO [2025-06-06 15:58:09] >> init shim success
127.0.0.1 localhost
::1 ip6-localhost ip6-loopback
防火墙在系统启动时自动禁用
kernel.apparmor_restrict_unprivileged_userns = 1
kernel.printk = 4 4 1 7
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2
kernel.kptr_restrict = 1
kernel.sysrq = 176
vm.max_map_count = 1048576
net.ipv4.conf.default.rp_filter = 2
net.ipv4.conf.all.rp_filter = 2
kernel.yama.ptrace_scope = 1
vm.mmap_min_addr = 65536
fs.inotify.max_user_watches = 65536
kernel.unprivileged_userns_clone = 1
kernel.pid_max = 4194304
fs.protected_fifos = 1
fs.protected_hardlinks = 1
fs.protected_regular = 2
fs.protected_symlinks = 1
fs.file-max = 1048576 # sealos
net.bridge.bridge-nf-call-ip6tables = 1 # sealos
net.bridge.bridge-nf-call-iptables = 1 # sealos
net.core.somaxconn = 65535 # sealos
net.ipv4.conf.all.rp_filter = 0 # sealos
net.ipv4.ip_forward = 1 # sealos
net.ipv4.ip_local_port_range = 1024 65535 # sealos
net.ipv4.tcp_keepalive_intvl = 30 # sealos
net.ipv4.tcp_keepalive_time = 600 # sealos
net.ipv4.vs.conn_reuse_mode = 0 # sealos
net.ipv4.vs.conntrack = 1 # sealos
net.ipv6.conf.all.forwarding = 1 # sealos
fs.file-max = 1048576 # sealos
net.bridge.bridge-nf-call-ip6tables = 1 # sealos
net.bridge.bridge-nf-call-iptables = 1 # sealos
net.core.somaxconn = 65535 # sealos
net.ipv4.conf.all.rp_filter = 0 # sealos
net.ipv4.ip_forward = 1 # sealos
net.ipv4.ip_local_port_range = 1024 65535 # sealos
net.ipv4.tcp_keepalive_intvl = 30 # sealos
net.ipv4.tcp_keepalive_time = 600 # sealos
net.ipv4.vs.conn_reuse_mode = 0 # sealos
net.ipv4.vs.conntrack = 1 # sealos
net.ipv6.conf.all.forwarding = 1 # sealos
fs.file-max = 1048576 # sealos
net.bridge.bridge-nf-call-ip6tables = 1 # sealos
net.bridge.bridge-nf-call-iptables = 1 # sealos
net.core.somaxconn = 65535 # sealos
net.ipv4.conf.all.rp_filter = 0 # sealos
net.ipv4.ip_forward = 1 # sealos
net.ipv4.ip_local_port_range = 1024 65535 # sealos
net.ipv4.tcp_keepalive_intvl = 30 # sealos
net.ipv4.tcp_keepalive_time = 600 # sealos
net.ipv4.vs.conn_reuse_mode = 0 # sealos
net.ipv4.vs.conntrack = 1 # sealos
net.ipv6.conf.all.forwarding = 1 # sealos
fs.file-max = 1048576 # sealos
net.bridge.bridge-nf-call-ip6tables = 1 # sealos
net.bridge.bridge-nf-call-iptables = 1 # sealos
net.core.somaxconn = 65535 # sealos
net.ipv4.conf.all.rp_filter = 0 # sealos
net.ipv4.ip_forward = 1 # sealos
net.ipv4.ip_local_port_range = 1024 65535 # sealos
net.ipv4.tcp_keepalive_intvl = 30 # sealos
net.ipv4.tcp_keepalive_time = 600 # sealos
net.ipv4.vs.conn_reuse_mode = 0 # sealos
net.ipv4.vs.conntrack = 1 # sealos
net.ipv6.conf.all.forwarding = 1 # sealos
fs.file-max = 1048576 # sealos
net.bridge.bridge-nf-call-ip6tables = 1 # sealos
net.bridge.bridge-nf-call-iptables = 1 # sealos
net.core.somaxconn = 65535 # sealos
net.ipv4.conf.all.rp_filter = 0 # sealos
net.ipv4.ip_forward = 1 # sealos
net.ipv4.ip_local_port_range = 1024 65535 # sealos
net.ipv4.tcp_keepalive_intvl = 30 # sealos
net.ipv4.tcp_keepalive_time = 600 # sealos
net.ipv4.vs.conn_reuse_mode = 0 # sealos
net.ipv4.vs.conntrack = 1 # sealos
net.ipv6.conf.all.forwarding = 1 # sealos
fs.file-max = 1048576 # sealos
net.bridge.bridge-nf-call-ip6tables = 1 # sealos
net.bridge.bridge-nf-call-iptables = 1 # sealos
net.core.somaxconn = 65535 # sealos
net.ipv4.conf.all.rp_filter = 0 # sealos
net.ipv4.ip_forward = 1 # sealos
net.ipv4.ip_local_port_range = 1024 65535 # sealos
net.ipv4.tcp_keepalive_intvl = 30 # sealos
net.ipv4.tcp_keepalive_time = 600 # sealos
net.ipv4.vs.conn_reuse_mode = 0 # sealos
net.ipv4.vs.conntrack = 1 # sealos
net.ipv6.conf.all.forwarding = 1 # sealos
fs.file-max = 1048576 # sealos
net.bridge.bridge-nf-call-ip6tables = 1 # sealos
net.bridge.bridge-nf-call-iptables = 1 # sealos
net.core.somaxconn = 65535 # sealos
net.ipv4.conf.all.rp_filter = 0 # sealos
net.ipv4.ip_forward = 1 # sealos
net.ipv4.ip_local_port_range = 1024 65535 # sealos
net.ipv4.tcp_keepalive_intvl = 30 # sealos
net.ipv4.tcp_keepalive_time = 600 # sealos
net.ipv4.vs.conn_reuse_mode = 0 # sealos
net.ipv4.vs.conntrack = 1 # sealos
net.ipv6.conf.all.forwarding = 1 # sealos
fs.file-max = 1048576 # sealos
net.bridge.bridge-nf-call-ip6tables = 1 # sealos
net.bridge.bridge-nf-call-iptables = 1 # sealos
net.core.somaxconn = 65535 # sealos
net.ipv4.conf.all.rp_filter = 0 # sealos
net.ipv4.ip_forward = 1 # sealos
net.ipv4.ip_local_port_range = 1024 65535 # sealos
net.ipv4.tcp_keepalive_intvl = 30 # sealos
net.ipv4.tcp_keepalive_time = 600 # sealos
net.ipv4.vs.conn_reuse_mode = 0 # sealos
net.ipv4.vs.conntrack = 1 # sealos
net.ipv6.conf.all.forwarding = 1 # sealos
INFO [2025-06-06 15:58:09] >> pull pause image sealos.hub:5000/pause:3.9
E0606 15:58:11.144282 2999808 remote_image.go:180] "PullImage from image service failed" err="rpc error: code = Unknown desc = failed to pull and unpack image "sealos.hub:5000/pause:3.9": failed to resolve reference "sealos.hub:5000/pause:3.9": failed to do request: Head "https://sealos.hub:5000/v2/pause/manifests/3.9\": EOF" image="sealos.hub:5000/pause:3.9"
FATA[0001] pulling image: failed to pull and unpack image "sealos.hub:5000/pause:3.9": failed to resolve reference "sealos.hub:5000/pause:3.9": failed to do request: Head "https://sealos.hub:5000/v2/pause/manifests/3.9": EOF
INFO [2025-06-06 15:58:11] >> init kubelet success
INFO [2025-06-06 15:58:11] >> init rootfs success
2025-06-06T15:58:11 info Executing pipeline Init in CreateProcessor.
2025-06-06T15:58:11 error Applied to cluster error: failed to init masters: generate init config error: exit status 1
Error: failed to init masters: generate init config error: exit status 1
Beta Was this translation helpful? Give feedback.
All reactions