是否可以在重启前获取 pod 运行 所在节点的详细信息?
Is it possible to get the details of the node where the pod ran before restart?
我是 运行 一个包含 20 多个节点的 kubernetes 集群。命名空间中的一个 pod 重新启动。由于 OOM,该 pod 被终止,退出代码为 137,并按预期再次重新启动。但是想知道 pod 之前所在的节点 运行。我们可以在任何地方查看日志中的信息吗?比如 tiller、kubelet、kubeproxy 等...
But would like to know the node in which the pod was running earlier.
如果 pod 被 ExitCode: 137
杀死,例如当它使用的内存超过其限制时,它将在同一节点上重新启动 - 而不是重新安排。为此,请检查您的指标或容器日志。
但是 Pods 也可能由于过度提交节点而被终止,参见例如How to troubleshoot Kubernetes OOM and CPU Throttle.
我是 运行 一个包含 20 多个节点的 kubernetes 集群。命名空间中的一个 pod 重新启动。由于 OOM,该 pod 被终止,退出代码为 137,并按预期再次重新启动。但是想知道 pod 之前所在的节点 运行。我们可以在任何地方查看日志中的信息吗?比如 tiller、kubelet、kubeproxy 等...
But would like to know the node in which the pod was running earlier.
如果 pod 被 ExitCode: 137
杀死,例如当它使用的内存超过其限制时,它将在同一节点上重新启动 - 而不是重新安排。为此,请检查您的指标或容器日志。
但是 Pods 也可能由于过度提交节点而被终止,参见例如How to troubleshoot Kubernetes OOM and CPU Throttle.