TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Run a Kubernetes Job and get the logs when it's done

8 点作者 alexellisuk超过 2 年前

2 条评论

yorwba超过 2 年前
&gt; Getting the logs from a job is a pain, and needs multiple get&#x2F;describe&#x2F;logs commands<p>Last I checked, you could just do<p><pre><code> kubectl logs job&#x2F;&lt;job-name&gt;</code></pre>
alexellisuk超过 2 年前
I wanted to share a new OSS tool I&#x27;ve written because I felt like the user experience for running a job and getting the output from the Pod was too cryptic.<p>If you can see yourself using it, let me know. Try it out.<p>This is how it&#x27;s being used in OpenFaaS to help support customers: <a href="https:&#x2F;&#x2F;github.com&#x2F;openfaas&#x2F;config-checker" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;openfaas&#x2F;config-checker</a><p>A similar and more generic tool from Replicated is: <a href="https:&#x2F;&#x2F;github.com&#x2F;replicatedhq&#x2F;troubleshoot" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;replicatedhq&#x2F;troubleshoot</a><p>And if you wanted to see how easy it is to play around with the K8s API with Go, hopefully this example will give you a bit more confidence to try some hacking.
评论 #32729765 未加载