kuboard启动失败 kuboard-v3一直无法启动
启动的 kuboard-etcd 正常 kuboard-v3一直无法启动 [root@k8s-1-31 ~]# kubectl get pod -n kuboard NAME READY STATUS RESTARTS AGE kuboard-etcd-49mjf 1/1 Running 0 25m kuboard-etcd-f7g4m 1/1 Running 0 26m kuboard-etcd-jk45w 1/1 Running 0 26m kuboard-v3-76996c957f-zd8g5 0/1 CrashLoopBackOff 9 (105s ago) 23m 查看 kuboard-v3-76996c957f-zd8g5 日志如下: time=“2022-11-02T16:05:38Z” level=info msg=“config using log level: info” time=“2022-11-02T16:05:38Z” level=info msg=“config issuer: http://192.168.1.35:30080/sso” time=“2022-11-02T16:05:38Z” level=info msg=“config storage: etcd” time=“2022-11-02T16:05:38Z” level=info msg=“config static client: KuboardApp” time=“2022-11-02T16:05:38Z” level=info msg=“config connector: default” time=“2022-11-02T16:05:38Z” level=info msg=“config skipping approval screen” time=“2022-11-02T16:05:38Z” level=info msg=“config signing keys expire after: 6h0m0s” time=“2022-11-02T16:05:38Z” level=info msg=“config id tokens valid for: 168h0m0s” time=“2022-11-02T16:05:38Z” level=info msg=“config device requests valid for: 5m0s” 设置日志级别为 info [LOG] 2022/11/03 - 00:05:41.650 | /common/etcd.client_config 24 | info | KUBOARD_ETCD_ENDPOINTS=[] [LOG] 2022/11/03 - 00:05:41.650 | /common/etcd.client_config 52 | info | {[] 0s 1s 0s 0s 0 0 false [] false} [LOG] 2022/11/03 - 00:05:41.651 | /initializekuboard.InitializeEtcd 39 | info | 初始化 ./init-etcd-scripts/audit-policy-once.yaml {“level”:“warn”,“ts”:“2022-11- 03T00:05:43.619+0800”,“caller”:“clientv3/retry_interceptor.go:61”,“msg”:“retrying of unary invoker failed”,“target”:“endpoint://client-f777d7ed-593f-4336-b868- 86a448cc4919/”,“attempt”:0,“error”:“rpc error: code = DeadlineExceeded desc = latest balancer error: all SubConns are in TransientFailure, latest connection error: connection error: desc = “transport: Error while dialing dial tcp: missing address””} failed to initialize server: server: failed to list connector objects from storage: context deadline exceeded 编辑配置文件
kubectl edit cm kuboard-v3-config -n kuboard 搜索此配置项,将此配置项替换 KUBOARD_SERVER_NODE_PORT: ‘30080’ 将上面的内容替换,根据自己情况写自己k8s节点的任意IP(或者 集群IP) KUBOARD_ENDPOINT: ‘http://192.168.1.36:30080’ 或者 ARD_ENDPOINT: ‘http://cluster-endpoint:30080’ 删除之前的 pod 让它自己拉起来看日志后发现正常了 kubectl delete pod kuboard-v3-76996c957f-zd8g5 -n kuboard 查看日志 kubectl logs -f kuboard-v3-76996c957f-l5wgh -n kuboard 账号密码 admin
Kuboard123