V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
c0nstantien
V2EX  ›  Kubernetes

[求助] sealos 私有化部署失败

  •  
  •   c0nstantien · 3 天前 · 204 次点击

    sealos 私有化部署失败

    使用 sealos 官网的 install_v2.sh 脚本部署,在安装 k8s 集群时报错,有人遇到这种情况嘛

    执行日志过程中出现的 warn 日志,我判断应该是安装失败的原因

    2026-01-16T14:59:36 info trying default http mode to sync images to hosts [172.16.254.32:22]
    2026-01-16T14:59:36 warn failed to copy image 127.0.0.1:32931/coredns/coredns:v1.10.1: trying to reuse blob sha256:25b7032c281a433b92d09930f3a03c0f7382c27eb69ae7f35addf2e3853dbba7 at destination: pinging container registry 172.16.254.32:5050: received unexpected HTTP status: 502 Bad Gateway
    2026-01-16T14:59:36 warn failed to copy image 127.0.0.1:32931/coredns/coredns:v1.10.1: trying to reuse blob sha256:25b7032c281a433b92d09930f3a03c0f7382c27eb69ae7f35addf2e3853dbba7 at destination: pinging container registry 172.16.254.32:5050: received unexpected HTTP status: 502 Bad Gateway
    2026-01-16T14:59:36 warn failed to copy image 127.0.0.1:32931/etcd:3.5.15-0: trying to reuse blob sha256:f531499c6b730fc55a63e5ade55ce2c849bbf03f894248e3a2092689e3749312 at destination: pinging container registry 172.16.254.32:5050: received unexpected HTTP status: 502 Bad Gateway
    2026-01-16T14:59:36 warn failed to copy image 127.0.0.1:32931/etcd:3.5.15-0: trying to reuse blob sha256:f531499c6b730fc55a63e5ade55ce2c849bbf03f894248e3a2092689e3749312 at destination: pinging container registry 172.16.254.32:5050: received unexpected HTTP status: 502 Bad Gateway
    2026-01-16T14:59:36 warn failed to copy image 127.0.0.1:32931/kube-apiserver:v1.28.15: trying to reuse blob sha256:0674a6f58b64d0431620993268b1a1b0ef8618ee3cffd96d4662c2759ec43894 at destination: pinging container registry 172.16.254.32:5050: received unexpected HTTP status: 502 Bad Gateway
    2026-01-16T14:59:36 warn failed to copy image 127.0.0.1:32931/kube-apiserver:v1.28.15: trying to reuse blob sha256:0674a6f58b64d0431620993268b1a1b0ef8618ee3cffd96d4662c2759ec43894 at destination: pinging container registry 172.16.254.32:5050: received unexpected HTTP status: 502 Bad Gateway
    
    2026-01-16T14:59:48 info start to pull images: sealos.hub:5000/kube-apiserver:v1.28.15, sealos.hub:5000/kube-controller-manager:v1.28.15, sealos.hub:5000/kube-scheduler:v1.28.15, sealos.hub:5000/kube-proxy:v1.28.15, sealos.hub:5000/pause:3.9, sealos.hub:5000/etcd:3.5.15-0, sealos.hub:5000/coredns/coredns:v1.10.1
    E0116 14:59:48.968711  128637 remote_image.go:180] "PullImage from image service failed" err="rpc error: code = NotFound desc = failed to pull and unpack image \"sealos.hub:5000/kube-apiserver:v1.28.15\": failed to resolve reference \"sealos.hub:5000/kube-apiserver:v1.28.15\": sealos.hub:5000/kube-apiserver:v1.28.15: not found" image="sealos.hub:5000/kube-apiserver:v1.28.15"
    FATA[0000] pulling image: rpc error: code = NotFound desc = failed to pull and unpack image "sealos.hub:5000/kube-apiserver:v1.28.15": failed to resolve reference "sealos.hub:5000/kube-apiserver:v1.28.15": sealos.hub:5000/kube-apiserver:v1.28.15: not found 
    2026-01-16T14:59:48 error Applied to cluster error: failed to init masters: pull image sealos.hub:5000/kube-apiserver:v1.28.15 failed, error: exit status 1
    Error: failed to init masters: pull image sealos.hub:5000/kube-apiserver:v1.28.15 failed, error: exit status 1
    

    其中执行的命令是

    sealos run ghcr.io/labring/sealos/kubernetes:v1.28.15                        --env KUBEADM_POD_SUBNET=100.64.0.0/10         --env KUBEADM_SERVICE_SUBNET=10.96.0.0/22        --env KUBEADM_MAX_PODS=120        --env KUBEADM_SERVICE_RANGE=        --env criData=/var/lib/containerd        --env registryPassword=passw0rd        --pk=/root/.ssh/id_rsa        --passwd=
    
    c0nstantien
        1
    c0nstantien  
    OP
       3 天前
    问题已解决,是我主机名取名叫 sealos 的问题,无语。。。。
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1225 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 23:38 · PVG 07:38 · LAX 15:38 · JFK 18:38
    ♥ Do have faith in what you're doing.