我在添加已有集群的时候,在第三步,去现有的集群上执行命令,报错:Error: INSTALLATION FAILED: failed pre-install: job failed: BackoffLimitExceeded 。
我通过 kubectl logs -f -l name=env-checker -n rbd-system查看了一下原因,是因为 80端口已经被占用。 我的集群上确是是部署了一个应用,已经占用了80端口,请问这种情况怎么进行对接?
我暂时先关闭了80和443端口,集群的master上面,显示安装成功,并且POD状态也是正常的。 但是在rainbond平台,提示
当前集群对接失败 可能服务器命令还没有执行完毕,可以“刷新进度”或去服务器执行“ watch kubectl get po -n rbd-system ”命令,查看Pod状态。 官网企业服务社区
刷 新后,依然是这样。pod的状态如下:
[root@VM-8-17-centos ~]# kubectl get pod -n rbd-system NAME READY STATUS RESTARTS AGE nfs-provisioner-0 1/1 Running 0 11m rainbond-operator-b7f4df4cc-wrvmz 1/1 Running 3 (6m13s ago) 11m rbd-etcd-0 1/1 Running 0 10m rbd-gateway-nxz62 1/1 Running 0 9m56s rbd-hub-6d64547984-7t5bx 1/1 Running 0 10m rbd-node-pf676 1/1 Running 0 10m
参考文档修改端口 https://www.rainbond.com/docs/ops-guide/management/change-ports
参考排错文档,https://www.rainbond.com/docs/troubleshooting/installation/helm,分析并给出结论和日志,这样更利于排查问题
SmallQi 报错信息如下:
loginClientSide: login attempt to http://goodrain.me/v2/ failed with status: 404 Not Found’
我试了一下,这个域名已经到期了。
完整的日志信息:
apiVersion: rainbond.io/v1alpha1 kind: RainbondCluster metadata: annotations: enterprise_id: 75497401e087425d86064adcd78d6ef7 meta.helm.sh/release-name: rainbond meta.helm.sh/release-namespace: rbd-system creationTimestamp: “2023-05-22T04:11:42Z” generation: 6 labels: app.kubernetes.io/managed-by: Helm name: rainbondcluster namespace: rbd-system resourceVersion: “5203” uid: 8a37ae53-9053-4bbe-90c4-a214456a8529 spec: configCompleted: true gatewayIngressIPs: 159.75.28.243 imageHub: domain: goodrain.me password: c8b8196b username: admin installMode: WithoutPackage installVersion: v5.14.0-release nodesForChaos: internalIP: 10.0.8.17 name: vm-8-17-centos nodesForGateway: internalIP: 10.0.8.17 name: vm-8-17-centos rainbondImageRepository: registry.cn-hangzhou.aliyuncs.com/goodrain suffixHTTPHost: d8f5e2.grapps.cn status: chaosAvailableNodes: {} conditions: lastHeartbeatTime: “2023-05-22T04:11:48Z” lastTransitionTime: “2023-05-22T04:11:48Z” status: “True” type: KubernetesVersion lastHeartbeatTime: “2023-05-22T04:12:56Z” lastTransitionTime: “2023-05-22T04:11:48Z” message: precheck for Storage is in progress reason: InProgress status: “False” type: Storage lastHeartbeatTime: “2023-05-22T04:12:56Z” lastTransitionTime: “2023-05-22T04:11:48Z” status: “True” type: DNS lastHeartbeatTime: “2023-05-22T04:12:56Z” lastTransitionTime: “2023-05-22T04:11:48Z” status: “True” type: Memory lastHeartbeatTime: “2023-05-22T04:12:56Z” lastTransitionTime: “2023-05-22T04:11:48Z” message: rbdcomponent(rbd-eventlog) not ready reason: RbdComponentNotReady status: “False” type: Running lastHeartbeatTime: “2023-05-22T04:12:56Z” lastTransitionTime: “2023-05-22T04:12:04Z” message: ’loginClientSide: login attempt to http://goodrain.me/v2/ failed with status: 404 Not Found’ reason: ImageRepoFailed status: “False” type: ImageRepository gatewayAvailableNodes: {} imagePullSecrets: name: rbd-hub-credentials storageClasses: name: rainbondvolumerwx provisioner: rainbond.io/nfs name: database-mongodb provisioner: openebs.io/local name: local-hostpath provisioner: openebs.io/local
apiVersion: rainbond.io/v1alpha1 kind: RainbondCluster metadata: annotations: enterprise_id: 75497401e087425d86064adcd78d6ef7 meta.helm.sh/release-name: rainbond meta.helm.sh/release-namespace: rbd-system creationTimestamp: “2023-05-22T04:11:42Z” generation: 6 labels: app.kubernetes.io/managed-by: Helm name: rainbondcluster namespace: rbd-system resourceVersion: “5203” uid: 8a37ae53-9053-4bbe-90c4-a214456a8529 spec: configCompleted: true gatewayIngressIPs:
这是镜像仓库出了问题,可能的原因是你用的 containerd 运行时,没有配置私有镜像仓库,或者你可以查看 rainbond-operator 获取更多日志,需要更多日志以及分析来排查问题