简体   繁体   English

从 Argo 导出 Kubernetes 日志

[英]Export Kubernetes Logs from Argo

I am working in a setup where I have an Argo CD portal to view the Kubernetes deployments etc. But do not have access to a kubeconfig file (hence cannot use kubectl).我正在一个设置中工作,我有一个 Argo CD 门户来查看 Kubernetes 部署等。但无法访问 kubeconfig 文件(因此无法使用 kubectl)。

I can see the logs for the pods in the web UI, but is there a way to export the logs as a text file?我可以在 web UI 中看到 pod 的日志,但是有没有办法将日志导出为文本文件?

ArgoCD's logging interface in >2.0 includes a Download button. ArgoCD 在 >2.0 中的日志界面包括一个下载按钮。

For earlier versions, open your browser's dev tools to the Network tab.对于早期版本,打开浏览器的开发工具到网络选项卡。 Click the Logs tag in the ArgoCD interface.单击 ArgoCD 界面中的 Logs 标签。 Find the network request to the logs endpoint and open the URL in a new tab.找到对logs端点的网络请求,并在新选项卡中打开 URL。 From there you can download the logs as a text file using your browser's "Save As" feature.从那里您可以使用浏览器的“另存为”功能将日志下载为文本文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM