本页面上的部分或全部信息可能不适用于 Trusted Cloud by S3NS。
在 Cloud Code for IntelliJ 中查看 Kubernetes 日志
本页介绍了如何在 Cloud Code 中查看应用的流式传输日志以及如何检查资源的状态。
构建应用并以常规模式或开发模式运行后,您将能够在 IDE 中监控从应用流式传输的日志。您还可以通过导航到 Kubernetes Explorer 查看来自特定资源(pod、Deployment 等)的日志。
查看任务和资源的状态
启动开发或调试会话后,您将能够在
IDE 中监控从应用流式传输的日志。
您可以从 Kubernetes Explorer 中通过以下方式查看部署状态:
查看特定资源的日志
如需查看来自特定资源的日志,请按照以下步骤操作:
导航到 Kubernetes Explorer。您可以通过右侧的侧边面板或使用 Tools > Cloud Code > Kubernetes > View Cluster Explorer 访问该工具。
选择要查看其日志的资源,例如 pod、Deployment 或 Service。
右键点击该资源,然后选择 Stream Logs。或者,您也可以流式传输在 Pod 中运行的各个容器的日志。
这会将日志输出到 Kubernetes Explorer Console。
后续步骤
获取支持
如需在 IntelliJ IDE 中提交反馈或报告问题,请前往
工具 >
Cloud Code >
帮助 / 简介 >
提交反馈或报告问题,在
GitHub 上报告问题。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-15。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-15。"],[[["Monitor application logs directly from your IDE after building and running in either regular or development mode."],["Access the Kubernetes Explorer to view the status of pods, deployments, and nodes, with color-coded indicators for resource health."],["Utilize the `kubectl describe` command by right-clicking on a deployed resource within the Kubernetes Explorer to view detailed information."],["Stream logs from a specific resource, such as a pod or deployment, by right-clicking the resource in the Kubernetes Explorer and selecting \"Stream Logs\"."]]],[]]