k8s 安装 kuboardV3 报错

复制代码
# kubectl describe pod metrics-server-76bf575666-xzvhp -n kuboard
Error from server (NotFound): pods "metrics-server-76bf575666-xzvhp" not found
root@cnhuaservert26:/etc/systemd/system/containerd.service.d# kubectl describe pod metrics-scraper-5c688489ff-8fjr7 -n kuboard
Name:             metrics-scraper-5c688489ff-8fjr7
Namespace:        kuboard
Priority:         0
Service Account:  kuboard-admin
Node:             hostname/10.115.192.140
Start Time:       Fri, 17 Oct 2025 14:18:05 +0800
Labels:           k8s.kuboard.cn/name=metrics-scraper
                  pod-template-hash=5c688489ff
Annotations:      cni.projectcalico.org/containerID: 0bc843f27ea1103843eef4e78b280a35b2f39a686b8aee5c7dc7ee62e6739153
                  cni.projectcalico.org/podIP: 10.244.24.7/32
                  cni.projectcalico.org/podIPs: 10.244.24.7/32
                  k8s.kuboard.cn/ingress: false
                  k8s.kuboard.cn/service: metrics-scraper
                  k8s.kuboard.cn/workload: metrics-scraper
Status:           Pending
IP:               10.244.24.7
IPs:
  IP:           10.244.24.7
Controlled By:  ReplicaSet/metrics-scraper-5c688489ff
Containers:
  metrics-scraper:
    Container ID:
    Image:         swr.cn-east-2.myhuaweicloud.com/kuboard-dependency/metrics-scraper:v1.0.8
    Image ID:
    Port:          8000/TCP
    Host Port:     0/TCP
    Args:
      --metric-duration=30m
    State:          Waiting
      Reason:       ErrImagePull
    Ready:          False
    Restart Count:  0
    Liveness:       http-get http://:8000/ delay=30s timeout=30s period=10s #success=1 #failure=3
    Environment:    <none>
    Mounts:
      /tmp from tmp-volume (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-hdj2n (ro)
Conditions:
  Type                        Status
  PodReadyToStartContainers   True
  Initialized                 True
  Ready                       False
  ContainersReady             False
  PodScheduled                True
Volumes:
  tmp-volume:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:
    SizeLimit:  <unset>
  kube-api-access-hdj2n:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              beta.kubernetes.io/os=linux
Tolerations:                 node-role.kubernetes.io/master:NoSchedule op=Exists
                             node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason     Age                  From               Message
  ----     ------     ----                 ----               -------
  Normal   Scheduled  2m43s                default-scheduler  Successfully assigned kuboard/metrics-scraper-5c688489ff-8fjr7 to hostname
  Normal   Pulling    29s (x4 over 2m43s)  kubelet            Pulling image "swr.cn-east-2.myhuaweicloud.com/kuboard-dependency/metrics-scraper:v1.0.8"
  Warning  Failed     18s (x4 over 2m22s)  kubelet            Failed to pull image "swr.cn-east-2.myhuaweicloud.com/kuboard-dependency/metrics-scraper:v1.0.8": failed to pull and unpack image "swr.cn-east-2.myhuaweicloud.com/kuboard-dependency/metrics-scraper:v1.0.8": failed to resolve reference "swr.cn-east-2.myhuaweicloud.com/kuboard-dependency/metrics-scraper:v1.0.8": failed to do request: Head "https://swr.cn-east-2.myhuaweicloud.com/v2/kuboard-dependency/metrics-scraper/manifests/v1.0.8": net/http: TLS handshake timeout
  Warning  Failed     18s (x4 over 2m22s)  kubelet            Error: ErrImagePull
  Normal   BackOff    5s (x6 over 2m22s)   kubelet            Back-off pulling image "swr.cn-east-2.myhuaweicloud.com/kuboard-dependency/metrics-scraper:v1.0.8"
  Warning  Failed     5s (x6 over 2m22s)   kubelet            Error: ImagePullBackOff

我的环境特殊,访问外网受限,直接安装kuboard V3,死活报错

复制代码
# kubectl get pod -A
kuboard       kuboard-v3-58c8cb79d-wcghr                 0/1     Running   0          142m

替换前:

KUBOARD_SERVER_NODE_PORT: '30080'

替换后:(k8s节点的任意IP)

KUBOARD_ENDPOINT: 'http://192.168.1.105:30080'

替换后正常,这个坑好像被搞了两次,我这个渣渣记性

相关推荐
roman_日积跬步-终至千里1 天前
【Docker】Docker Stop 后到底发生了什么?——从信号机制到优雅停机
运维·docker·容器
喵手1 天前
云端智变:基于 DevUI 与 MateChat 打造下一代云原生智能运维中台实战教学!
运维·云原生·devui·matechat
z***6261 天前
Docker:基于自制openjdk8镜像 or 官方openjdk8镜像,制作tomcat镜像
docker·容器·tomcat
Connie14511 天前
记一次K8s故障告警排查(Grafna告警排查)
云原生·容器·kubernetes·grafana
❀͜͡傀儡师1 天前
Docker部署视频下载器
docker·容器·音视频
热爱学习的小怪兽1 天前
docker的一些常用指令
运维·docker·容器
w***76551 天前
用docker启动mysql步骤
mysql·docker·容器
0***R5151 天前
前端云原生
前端·云原生
杜子不疼.1 天前
【探索实战】从0到1打造分布式云原生平台:Kurator全栈实践指南
分布式·云原生
qq_2153978971 天前
docker 安装 opengauss 高斯数据库
运维·docker·容器