You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in function [`ShouldContainerBeRestarted`](https://github.com/kubernetes/kubernetes/blob/451e1fa8bcff38b87504eebd414948e505526d01/pkg/kubelet/container/helpers.go#L63-L96).
284
-
If restart count is greater than the `MaxRestartTimes`, return false indicating the container should not
285
-
restart again. We'll add a new error named `ExceedMaxRestartTimes` as the reason of Pod's failure state.
283
+
restart times for backwards compatibility. In runtime, we'll check the sum of `RestartCount` of
284
+
all containers[`Status`](https://github.com/kubernetes/kubernetes/blob/451e1fa8bcff38b87504eebd414948e505526d01/pkg/kubelet/container/runtime.go#L306-L335)
285
+
packaged by Pod in function [`ShouldContainerBeRestarted`](https://github.com/kubernetes/kubernetes/blob/451e1fa8bcff38b87504eebd414948e505526d01/pkg/kubelet/container/helpers.go#L63-L96).
286
+
If the value is greater than the `MaxRestartTimes`, return false indicating the Pod should not restart again.
287
+
We'll add a new error named `ExceedMaxRestartTimes` as the reason of Pod's failure state.
0 commit comments