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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Kubernetes Ephemeral Containers and `kubectl debug` Command

5 点作者 rajeevk将近 3 年前

1 comment

hhthrowaway1230将近 3 年前
A thing that really would help in terms of debugging, is re-running a spec, with a changed command in a clean way.<p>Sometimes jobs fail and terminate too fast to shell in it and to see if anything is really properly configured. (mounts&#x2F;secrets&#x2F;etc) So usually I copy the pod spec, change the command to &quot;sleep&quot; and remove all the cruft that k8s doesn&#x27;t allow when applying the yaml. And then run again, and then when it&#x27;s &quot;sleep&quot;ing I can shell into it and run the commands, check the secrets and what not.<p>Most of the work of this approach goes into changing the command, and cleaning up the spec.