纯内网环境离线安装Rancher2.7.6 已完成的准备工作
- 从git下载离线包资源文档,加上cert-manager中的4个包,一共下载640个包,大小35G左右(其中辛酸只有自己知道····)
- 将640个包按照官方脚本上传到私有harbor仓库中
- 按照官方《 Docker 安装命令》中的指示"使用 Rancher 默认的自签名证书"执行启动脚本
docker run -d --restart=unless-stopped -p 80:80 -p 443:443 -e CATTLE_SYSTEM_DEFAULT_REGISTRY=REGISTRY.YOURDOMAIN.COM:PORT -e CATTLE_SYSTEM_CATALOG=bundled --privileged REGISTRY.YOURDOMAIN.COM:PORT/rancher/rancher:<RANCHER_VERSION_TAG>
问题描述:
-
1、启动后能正常登录ui界面,local集群整体是active状态,但local集群的events一直报错,(我本机有完整的640个离线镜像,harbor里也上传了完整的640个镜像)如下:
FailedCreatePodSandBox Pod helm-operation-svlwn Failed to create pod sandbox: rpc error: code = DeadlineExceeded desc = failed to get sandbox image “rancher/mirrored-pause:3.6”: failed to pull image “rancher/mirrored-pause:3.6”: failed to pull and unpack image “docker.io/rancher/mirrored-pause:3.6”: failed to resolve reference “docker.io/rancher/mirrored-pause:3.6”: failed to do request: Head “https://registry-1.docker.io/v2/rancher/mirrored-pause/manifests/3.6”: dial tcp 34.205.13.154:443: i/o timeout helm-operation-svlwn.1784bdaffa8dff73
-
2、创建“自定义集群”,已配置过本地仓库地址,创建报错如下:
failed to create fleet-default/pk1 cluster.x-k8s.io/v1beta1, Kind=Cluster for rke-cluster fleet-default/pk1: Internal error occurred: failed calling webhook “default.cluster.cluster.x-k8s.io”: failed to call webhook: Post “https://webhook-service.cattle-system.svc:443/mutate-cluster-x-k8s-io-v1beta1-cluster?timeout=10s”: service “webhook-service” not found
-
3、更换多台服务器仍然是相同的问题