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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

I wish pods were fully restartable

3 点作者 erkanerol将近 5 年前

1 comment

monus将近 5 年前
I think “restartability” comes down to what you lose when you restart it. In case of pods, you lose logs and in case of StatefulSets or volume mounted pods, some kind of state. Apparently, Kubernetes decided that this is too much to lose if they automated it.<p>But I agree with OP that it should be optional to restart them automatically since in a lot of cases it’s simply a state problem. Is that a problem needs debugging so we need to keep some traces? Yes but the same goes for container restart, too. So there is a tradeoff and I can see that it’s not much different than the tradeoff we make for container restart. Write the logs somewhere before the restart for example.