< img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=3131724&fmt=gif" />

附录:member 集群网关日志无数据的解决办法

若 member 集群的“集群网关”详情页中,“网关日志”页签不显示数据,可采用以下方法解决。

  1. 启用 host 集群上 whizard-telemetry-apiserver 服务的 NodePort 访问模式。

    1. 在 host 集群的应用负载菜单下,点击服务进入服务页面。

    2. 搜索服务 whizard-telemetry-apiserver,点击more > 编辑外部访问

    3. 编辑外部访问对话框,选择 NodePort,然后点击确定

  2. 修改 KubeSphere 网关的扩展组件配置,将 backend.config.gateway.logSearchEndpoint 设置为 host 集群上 whizard-telemetry-apiserver 服务的访问地址。

    backend:
      enabled: true
      config:
        gateway:
          namespace: kubesphere-controls-system
          valuesOverride:
            controller:
              image:
                registry: ""
                image: kubesphereio/nginx-ingress-controller
                tag: "v1.4.0"
                pullPolicy: IfNotPresent
                digest: ""
          exposeNodeLabelKey: "node-role.kubernetes.io/control-plane"
          versionConstraint: ">= 4.3.0, < 4.5.0"
          logSearchEndpoint: "http://whizard-telemetry-apiserver.extension-whizard-telemetry.svc:9090" # 替换为 http://<node-ip>:<whizard-telemetry-apiserver-nodeport>
  3. 在 member 集群上,重启网关 gateway-agent-backend-apiserver

    kubectl -n extension-gateway rollout restart deploy gateway-agent-backend-apiserver
  4. 刷新 member 集群的网关日志页签,即可看到网关日志数据。

Receive the latest news, articles and updates from KubeSphere


Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.

What’s on this Page