4.3. 使用 Azure Kubernetes Services (AKS)查看日志
您可以访问 Kubernetes 对象生成的实时数据日志,并在 AKS 中收集容器 Insights 中的日志数据。
先决条件
- 您已在 AKS 上部署了 Developer Hub。
如需更多信息,请参阅在 Microsoft Azure Kubernetes Service 上安装 Red Hat Developer Hub。
流程
- 查看 Developer Hub 实例的实时日志
- 进入 Azure Portal。
-
搜索资源组 <
your-ResourceGroup> 并找到您的AKS 集群 <your-Cluster>。 -
从菜单中选择 Kubernetes resources
Workloads。 -
选择 &
lt;your-rhdh-cr>-developer-hub(在 Helm Chart 安装中)或<your-rhdh-cr>-backstage(在 Operator 支持的安装)部署。 - 单击左侧菜单中的 Live Logs。
选择 pod。
注意必须只有一个 pod。
收集并显示实时日志数据。
- 从容器引擎查看实时日志数据
- 进入 Azure Portal。
-
搜索资源组 <
your-ResourceGroup> 并找到您的AKS 集群 <your-Cluster>。 -
从菜单中选择 Monitoring
Insights。 - 转至 容器 选项卡。
- 找到 backend-backstage 容器,并点击它查看由 Container Engine 生成的实时日志数据。