-
Notifications
You must be signed in to change notification settings - Fork 40.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated cherry pick of #92614: Don't create a new sandbox for pod with #94959
Automated cherry pick of #92614: Don't create a new sandbox for pod with #94959
Conversation
… containers succeeded The kubelet would attempt to create a new sandbox for a pod whose RestartPolicy is OnFailure even after all container succeeded. It caused unnecessary CRI and CNI calls, confusing logs and conflicts between the routine that creates the new sandbox and the routine that kills the Pod. This patch checks the containers to start and stops creating sandbox if no container is supposed to start.
46482d7
to
d407bd5
Compare
/assign @dchen1107 @SergeyKanzhelev cc @alex-vmw |
from parent PR: /priority important-soon |
/lgtm |
/assign @dchen1107 |
/lgtm |
@SergeyKanzhelev @dashpole @dims Can you please approve/merge this for 1.18.11? |
/approve |
@puerco @gianarb @jimangel @markyjackson-taulia @mkorbi @onlydole @saschagrunert Could we please get a cherry-pick review and merge this into 1.18.11 now that it is approved? P.S. This is already merged into 1.19.4 as per #94725. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, dashpole, dchen1107, tnqn The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Cherry pick of #92614 on release-1.18.
#92614: Don't create a new sandbox for pod with
For details on the cherry pick process, see the cherry pick requests page.