eip-work / kuboard-press

Kuboard 是基于 Kubernetes 的微服务管理界面。同时提供 Kubernetes 免费中文教程,入门教程,最新版本的 Kubernetes v1.23.4 安装手册,(k8s install) 在线答疑,持续更新。
https://kuboard.cn/
22.69k stars 1.52k forks source link

kubectrl apply -f 无法一键安装(报RCP错误) #358

Open finopen-group opened 2 years ago

finopen-group commented 2 years ago

生成 KUBOARD_SSO_CLIENT_SECRET: 8001500638ce762f16e61e51 设置 KuboardAdmin 的默认密码(仅第一次启动时设置) Kuboard123 KUBOARD_ENDPOINT http://10.211.55.31:30080 eyJhbGciOiJSUzI1NiIsImtpZCI6Il9CVG10cUdZVzVDa21vWFpLRTloRVd5UkVGSWJjQlJpSVNsRUN3cGYzZzQifQ.eyJhdWQiOlsiaHR0cHM6Ly9rdWJlcm5ldGVzLmRlZmF1bHQuc3ZjLmNsdXN0ZXIubG9jYWwiXSwiZXhwIjoxNjk2ODY1MzQ2LCJpYXQiOjE2NjUzMjkzNDYsImlzcyI6Imh0dHBzOi8va3ViZXJuZXRlcy5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsIiwia3ViZXJuZXRlcy5pbyI6eyJuYW1lc3BhY2UiOiJrdWJvYXJkIiwicG9kIjp7Im5hbWUiOiJrdWJvYXJkLXYzLTU2YjRiOTU0YzktN3I5MnQiLCJ1aWQiOiJmMzUwZTgxMS1hMGMzLTQzZGEtOTJkMi03NWNmNGRlNDQzMjcifSwic2VydmljZWFjY291bnQiOnsibmFtZSI6Imt1Ym9hcmQtYm9vc3RyYXAiLCJ1aWQiOiJmMDRmOWYwNy1lM2RkLTRkZmMtODEyMi0yNjhjM2I3NmQyMTEifSwid2FybmFmdGVyIjoxNjY1MzMyOTUzfSwibmJmIjoxNjY1MzI5MzQ2LCJzdWIiOiJzeXN0ZW06c2VydmljZWFjY291bnQ6a3Vib2FyZDprdWJvYXJkLWJvb3N0cmFwIn0.d4gjNFr-oMoiEeDlJmchRnukYCgPhmbWHEpsd05hmLHUdnVga55q60Ju3eqxcwU9TbtxaigMNYYXg8K7_ivBuekjtM1wL2GsSWQQIMPNRJVMTKuWoSuQkXdxQseHr9EJl4vpbhcP562_2TZMy7tNXPkNln3cpZ3hQV3FqXaUdiIf26yhyNqq58gEu-wA8ejBpFD8ogEvgutrLO5G9IgXZvjRRAStk48YVMJNs9ISj_kANDoopR70r0frGw-XLwx3gPAeeSfNuaS32-tM6RvsLLCL3HmRJnxfcnhxE59Y6QbD4N4VhCSufVcAe_KEESpTlj79P2bZQA_fUekUwmev4A % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 16184 0 16184 0 0 1053k 0 --:--:-- --:--:-- --:--:-- 1053k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 114 100 114 0 0 22800 0 --:--:-- --:--:-- --:--:-- 22800 [{ "kind": "NodeList", "apiVersion": "v1", "metadata": { "resourceVersion": "110432" }, "items": [ { "metadata": { "name": "master", "uid": "6ded1a81-0ed6-4be6-8b7e-bf44e2ff2151", "resourceVersion": "110010", "creationTimestamp": "2022-10-08T02:01:57Z", "labels": { "beta.kubernetes.io/arch": "arm64", "beta.kubernetes.io/os": "linux", "kubernetes.io/arch": "arm64", "kubernetes.io/hostname": "master", "kubernetes.io/os": "linux", "node-role.kubernetes.io/control-plane": "", "node-role.kubernetes.io/master": "", "node.kubernetes.io/exclude-from-external-load-balancers": "" }, "annotations": { "flannel.alpha.coreos.com/backend-data": "{\"VNI\":1,\"VtepMAC\":\"82:61:50:10:10:5a\"}", "flannel.alpha.coreos.com/backend-type": "vxlan", "flannel.alpha.coreos.com/kube-subnet-manager": "true", "flannel.alpha.coreos.com/public-ip": "10.211.55.31", "kubeadm.alpha.kubernetes.io/cri-socket": "/var/run/dockershim.sock", "node.alpha.kubernetes.io/ttl": "0", "volumes.kubernetes.io/controller-managed-attach-detach": "true" }, "managedFields": [ { "manager": "Go-http-client", "operation": "Update", "apiVersion": "v1", "time": "2022-10-08T02:02:00Z", "fieldsType": "FieldsV1", "fieldsV1": { "f:metadata": { "f:annotations": { ".": {}, "f:kubeadm.alpha.kubernetes.io/cri-socket": {}, "f:volumes.kubernetes.io/controller-managed-attach-detach": {} }, "f:labels": { ".": {}, "f:beta.kubernetes.io/arch": {}, "f:beta.kubernetes.io/os": {}, "f:kubernetes.io/arch": {}, "f:kubernetes.io/hostname": {}, "f:kubernetes.io/os": {}, "f:node-role.kubernetes.io/control-plane": {}, "f:node-role.kubernetes.io/master": {}, "f:node.kubernetes.io/exclude-from-external-load-balancers": {} } } } }, { "manager": "kube-controller-manager", "operation": "Update", "apiVersion": "v1", "time": "2022-10-08T02:02:15Z", "fieldsType": "FieldsV1", "fieldsV1": { "f:metadata": { "f:annotations": { "f:node.alpha.kubernetes.io/ttl": {} } }, "f:spec": { "f:podCIDR": {}, "f:podCIDRs": { ".": {}, "v:\"10.10.0.0/24\"": {} }, "f:taints": {} } } }, { "manager": "flanneld", "operation": "Update", "apiVersion": "v1", "time": "2022-10-08T02:46:55Z", "fieldsType": "FieldsV1", "fieldsV1": { "f:metadata": { "f:annotations": { "f:flannel.alpha.coreos.com/backend-data": {}, "f:flannel.alpha.coreos.com/backend-type": {}, "f:flannel.alpha.coreos.com/kube-subnet-manager": {}, "f:flannel.alpha.coreos.com/public-ip": {} } }, "f:status": { "f:conditions": { "k:{\"type\":\"NetworkUnavailable\"}": { ".": {}, "f:lastHeartbeatTime": {}, "f:lastTransitionTime": {}, "f:message": {}, "f:reason": {}, "f:status": {}, "f:type": {} } } } }, "subresource": "status" }, { "manager": "Go-http-client", "operation": "Update", "apiVersion": "v1", "time": "2022-10-09T12:19:18Z", "fieldsType": "FieldsV1", "fieldsV1": { "f:status": { "f:allocatable": { "f:memory": {} }, "f:capacity": { "f:memory": {} }, "f:conditions": { "k:{\"type\":\"DiskPressure\"}": { "f:lastHeartbeatTime": {} }, "k:{\"type\":\"MemoryPressure\"}": { "f:lastHeartbeatTime": {} }, "k:{\"type\":\"PIDPressure\"}": { "f:lastHeartbeatTime": {} }, "k:{\"type\":\"Ready\"}": { "f:lastHeartbeatTime": {}, "f:lastTransitionTime": {}, "f:message": {}, "f:reason": {}, "f:status": {} } }, "f:images": {}, "f:nodeInfo": { "f:bootID": {} } } }, "subresource": "status" } ] }, "spec": { "podCIDR": "10.10.0.0/24", "podCIDRs": [ "10.10.0.0/24" ], "taints": [ { "key": "node-role.kubernetes.io/master", "effect": "NoSchedule" } ] }, "status": { "capacity": { "cpu": "2", "ephemeral-storage": "31270768Ki", "hugepages-1Gi": "0", "hugepages-2Mi": "0", "hugepages-32Mi": "0", "hugepages-64Ki": "0", "memory": "8119820Ki", "pods": "110" }, "allocatable": { "cpu": "2", "ephemeral-storage": "28819139742", "hugepages-1Gi": "0", "hugepages-2Mi": "0", "hugepages-32Mi": "0", "hugepages-64Ki": "0", "memory": "8017420Ki", "pods": "110" }, "conditions": [ { "type": "NetworkUnavailable", "status": "False", "lastHeartbeatTime": "2022-10-09T12:19:23Z", "lastTransitionTime": "2022-10-09T12:19:23Z", "reason": "FlannelIsUp", "message": "Flannel is running on this node" }, { "type": "MemoryPressure", "status": "False", "lastHeartbeatTime": "2022-10-09T15:33:31Z", "lastTransitionTime": "2022-10-08T02:01:56Z", "reason": "KubeletHasSufficientMemory", "message": "kubelet has sufficient memory available" }, { "type": "DiskPressure", "status": "False", "lastHeartbeatTime": "2022-10-09T15:33:31Z", "lastTransitionTime": "2022-10-08T02:01:56Z", "reason": "KubeletHasNoDiskPressure", "message": "kubelet has no disk pressure" }, { "type": "PIDPressure", "status": "False", "lastHeartbeatTime": "2022-10-09T15:33:31Z", "lastTransitionTime": "2022-10-08T02:01:56Z", "reason": "KubeletHasSufficientPID", "message": "kubelet has sufficient PID available" }, { "type": "Ready", "status": "True", "lastHeartbeatTime": "2022-10-09T15:33:31Z", "lastTransitionTime": "2022-10-08T02:02:00Z", "reason": "KubeletReady", "message": "kubelet is posting ready status. AppArmor enabled" } ], "addresses": [ { "type": "InternalIP", "address": "10.211.55.31" }, { "type": "Hostname", "address": "master" } ], "daemonEndpoints": { "kubeletEndpoint": { "Port": 10250 } }, "nodeInfo": { "machineID": "5a80e376f205421fbc8639e22f58a9e1", "systemUUID": "25e76349-c0c4-4984-8e63-e3d3c3a370d6", "bootID": "3dff5662-3303-441d-82f6-c6ce160eb220", "kernelVersion": "5.15.0-48-generic", "osImage": "Ubuntu 22.04.1 LTS", "containerRuntimeVersion": "docker://20.10.18", "kubeletVersion": "v1.23.1", "kubeProxyVersion": "v1.23.1", "operatingSystem": "linux", "architecture": "arm64" }, "images": [ { "names": [ "eipwork/kuboard@sha256:69a91a94911ace4247d61b5e9cf2fcc6ce7b5520721a62045650c5f6abbaf61a", "eipwork/kuboard:v3" ], "sizeBytes": 464584219 }, { "names": [ "kubernetesui/dashboard@sha256:cc746e7a0b1eec0db01cbabbb6386b23d7af97e79fa9e36bb883a95b7eb96fe2", "kubernetesui/dashboard:v2.5.1" ], "sizeBytes": 242202882 }, { "names": [ "registry.aliyuncs.com/google_containers/kube-apiserver@sha256:7436e1db9a3dd65cb26eda6040708f470cb72819a00f3cbc01c5222a712a59b5", "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver@sha256:7436e1db9a3dd65cb26eda6040708f470cb72819a00f3cbc01c5222a712a59b5", "k8s.gcr.io/kube-apiserver:v1.23.12", "registry.aliyuncs.com/google_containers/kube-apiserver:v1.23.12", "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.23.12" ], "sizeBytes": 132451068 }, { "names": [ "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver@sha256:f54681a71cce62cbc1b13ebb3dbf1d880f849112789811f98b6aebd2caa2f255", "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-apiserver:v1.23.1" ], "sizeBytes": 132450704 }, { "names": [ "registry.aliyuncs.com/google_containers/etcd@sha256:64b9ea357325d5db9f8a723dcf503b5a449177b17ac87d69481e126bb724c263", "registry.cn-hangzhou.aliyuncs.com/google_containers/etcd@sha256:64b9ea357325d5db9f8a723dcf503b5a449177b17ac87d69481e126bb724c263", "k8s.gcr.io/etcd:3.5.1-0", "registry.aliyuncs.com/google_containers/etcd:3.5.1-0", "registry.cn-hangzhou.aliyuncs.com/google_containers/etcd:3.5.1-0" ], "sizeBytes": 132115484 }, { "names": [ "registry.aliyuncs.com/google_containers/kube-controller-manager@sha256:62aa5c43b264f74107b261d371435ce06320fc51d38b884da03b7e2ae54f5d65", "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager@sha256:62aa5c43b264f74107b261d371435ce06320fc51d38b884da03b7e2ae54f5d65", "k8s.gcr.io/kube-controller-manager:v1.23.12", "registry.aliyuncs.com/google_containers/kube-controller-manager:v1.23.12", "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.23.12" ], "sizeBytes": 122555421 }, { "names": [ "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager@sha256:a7ed87380108a2d811f0d392a3fe87546c85bc366e0d1e024dfa74eb14468604", "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-controller-manager:v1.23.1" ], "sizeBytes": 122424018 }, { "names": [ "eipwork/etcd-host@sha256:acae6ece3a09ef05280512825a5e5e6f3cfefd10a234a96f0f9189b986914ea4", "eipwork/etcd-host:3.4.16-2" ], "sizeBytes": 116969144 }, { "names": [ "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy@sha256:e40f3a28721588affcf187f3f246d1e078157dabe274003eaa2957a83f7170c8", "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.23.1" ], "sizeBytes": 109183140 }, { "names": [ "registry.aliyuncs.com/google_containers/kube-proxy@sha256:67356c8821d36a342ab3cf68a0af8fc8ea3f4ed1173330aad2da77564b1f54c1", "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy@sha256:67356c8821d36a342ab3cf68a0af8fc8ea3f4ed1173330aad2da77564b1f54c1", "k8s.gcr.io/kube-proxy:v1.23.12", "registry.aliyuncs.com/google_containers/kube-proxy:v1.23.12", "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-proxy:v1.23.12" ], "sizeBytes": 109183127 }, { "names": [ "rancher/mirrored-flannelcni-flannel@sha256:c9786f434d4663c924aeca1a2e479786d63df0d56c5d6bd62a64915f81d62ff0", "rancher/mirrored-flannelcni-flannel:v0.19.2" ], "sizeBytes": 64389883 }, { "names": [ "registry.aliyuncs.com/google_containers/kube-scheduler@sha256:2f32ccd80e1d2c29dc57bee4710b8e49f72ff4647a775862e9f47b269df7014a", "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler@sha256:2f32ccd80e1d2c29dc57bee4710b8e49f72ff4647a775862e9f47b269df7014a", "k8s.gcr.io/kube-scheduler:v1.23.12", "registry.aliyuncs.com/google_containers/kube-scheduler:v1.23.12", "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.23.12" ], "sizeBytes": 52956242 }, { "names": [ "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler@sha256:8be4eb1593cf9ff2d91b44596633b7815a3753696031a1eb4273d1b39427fa8c", "registry.cn-hangzhou.aliyuncs.com/google_containers/kube-scheduler:v1.23.1" ], "sizeBytes": 52955839 }, { "names": [ "coredns/coredns@sha256:5b6ec0d6de9baaf3e92d0f66cd96a25b9edbce8716f5f15dcd1a616b3abd590e", "registry.aliyuncs.com/google_containers/coredns@sha256:5b6ec0d6de9baaf3e92d0f66cd96a25b9edbce8716f5f15dcd1a616b3abd590e", "registry.cn-hangzhou.aliyuncs.com/google_containers/coredns@sha256:5b6ec0d6de9baaf3e92d0f66cd96a25b9edbce8716f5f15dcd1a616b3abd590e", "coredns/coredns:1.8.6", "k8s.gcr.io/coredns/coredns:v1.8.6" ], "sizeBytes": 46808803 }, { "names": [ "kubernetesui/metrics-scraper@sha256:36d5b3f60e1a144cc5ada820910535074bdf5cf73fb70d1ff1681537eef4e172", "kubernetesui/metrics-scraper:v1.0.7" ], "sizeBytes": 32519053 }, { "names": [ "rancher/mirrored-flannelcni-flannel-cni-plugin@sha256:28d3a6be9f450282bf42e4dad143d41da23e3d91f66f19c01ee7fd21fd17cb2b", "rancher/mirrored-flannelcni-flannel-cni-plugin:v1.1.0" ], "sizeBytes": 7745695 }, { "names": [ "registry.aliyuncs.com/google_containers/pause@sha256:3d380ca8864549e74af4b29c10f9cb0956236dfb01c40ca076fb6c37253234db", "registry.cn-hangzhou.aliyuncs.com/google_containers/pause@sha256:3d380ca8864549e74af4b29c10f9cb0956236dfb01c40ca076fb6c37253234db", "k8s.gcr.io/pause:3.6", "registry.aliyuncs.com/google_containers/pause:3.6", "registry.cn-hangzhou.aliyuncs.com/google_containers/pause:3.6" ], "sizeBytes": 483864 }, { "names": [ "hello-world@sha256:62af9efd515a25f84961b70f973a798d2eca956b1b2b026d0a4a63a3b0b6a3f2", "hello-world:latest" ], "sizeBytes": 9136 } ] } } ] },{ "kind": "NodeList", "apiVersion": "v1", "metadata": { "resourceVersion": "110432" }, "items": [] }] master 10.211.55.31 10.211.55.31:2381 start kuboard-agent-server 当前 Kuboard 在 K8S 中运行,etcd 独立部署 启动内置的 QuestDB


/ \ _ | || | ) | | | | | | |/ \/ | | | | | \ | || | || | /_ \ || || | |) | __\_,|_||/__|/|/ www.questdb.io

/questdb/bin/questdb.sh: line 66: ps: command not found JAVA: /questdb/bin/java QuestDB server 6.0.4 Copyright (C) 2014-2022, all rights reserved.

认证模块:使用本地用户库 启动 kuboard-sso 设置日志级别为 info time="2022-10-09T15:38:47Z" level=info msg="config using log level: info" time="2022-10-09T15:38:47Z" level=info msg="config issuer: http://10.211.55.31:30080/sso" time="2022-10-09T15:38:47Z" level=info msg="config storage: etcd" time="2022-10-09T15:38:47Z" level=info msg="config static client: KuboardApp" time="2022-10-09T15:38:47Z" level=info msg="config connector: default" time="2022-10-09T15:38:47Z" level=info msg="config skipping approval screen" time="2022-10-09T15:38:47Z" level=info msg="config signing keys expire after: 6h0m0s" time="2022-10-09T15:38:47Z" level=info msg="config id tokens valid for: 168h0m0s" time="2022-10-09T15:38:47Z" level=info msg="config device requests valid for: 5m0s" 设置日志级别为 info [LOG] 2022/10/09 - 23:38:50.643 | /common/etcd.client_config 24 | info | KUBOARD_ETCD_ENDPOINTS=[10.211.55.31:2381] [LOG] 2022/10/09 - 23:38:50.643 | /common/etcd.client_config 52 | info | {[10.211.55.31:2381] 0s 1s 0s 0s 0 0 false [] false} [LOG] 2022/10/09 - 23:38:50.643 | /initializekuboard.InitializeEtcd 39 | info | 初始化 ./init-etcd-scripts/audit-policy-once.yaml {"level":"warn","ts":"2022-10-09T23:38:52.594+0800","caller":"clientv3/retry_interceptor.go:61","msg":"retrying of unary invoker failed","target":"endpoint://client-60530580-07b1-4de3-9150-419669f200ff/10.211.55.31:2381","attempt":0,"error":"rpc error: code = DeadlineExceeded desc = context deadline exceeded"} failed to initialize server: server: failed to list connector objects from storage: context deadline exceeded

ChrisZhang789 commented 2 years ago

可以参考 https://github.com/eip-work/kuboard-press/issues/328