本頁面中的部分或全部資訊可能不適用於 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、部署或服務。
在資源上按一下滑鼠右鍵,然後選取「Stream Logs」(串流記錄)。或者,您也可以串流 Pod 中執行的個別容器記錄。
這會將記錄輸出至 Kubernetes Explorer 控制台。
後續步驟
取得支援
如要在 IntelliJ IDE 中提供意見回饋或回報問題,請依序前往「Tools」
>「Cloud Code」
>「Help / About」
>「Submit feedback or report an issue」
,在
GitHub 回報問題。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-11 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2025-08-11 (世界標準時間)。"],[[["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\"."]]],[]]