Appendix: Gateway Logs Not Showing Data in Member Clusters
If the "Gateway Logs" tab in the "Cluster Gateway" details page of a member cluster does not display data, you can resolve the issue using the following methods.
Enable the NodePort access mode for the
whizard-telemetry-apiserver
service on the host cluster.Under the application workloads menu on the host cluster, click Services to enter the services page.
Search for the service
whizard-telemetry-apiserver
, click > Edit External Access.In the Edit External Access dialog, select NodePort, and then click OK.
Modify the configuration of the KubeSphere Gateway extension, set
backend.config.gateway.logSearchEndpoint
to the access address of thewhizard-telemetry-apiserver
service on the host cluster.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" # Replace it with http://<node-ip>:<whizard-telemetry-apiserver-nodeport>
On the member cluster, restart the gateway
gateway-agent-backend-apiserver
.kubectl -n extension-gateway rollout restart deploy gateway-agent-backend-apiserver
Refresh the Gateway Logs tab on the member cluster to see the gateway log data.
Feedback
Was this page Helpful?
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.