![](/img/trans.png)
[英]Pattern to enforce a pod has a label from the container within that pod
[英]How to find pod termination reason from within pod?
這里我使用的是 Kubernetes 1.15.3。 有什么方法可以從 pod. 當 pod 終止 Kubernetes 時,當 pod 的 memory 超過時,會向容器的主進程發送 SIGTERM 信號。 在 pod describe 上,我可以看到退出狀態代碼 137,但有沒有辦法從內部 pod 中找到它。
當您超出 memory 限制時,您不會收到和 SIGTERM。 這是一個 SIGKILL,它不是一個可捕獲的信號。 您的流程將不復存在。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.