Skip to content
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

Skip pods marked for deletion #485

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

mlguerrero12
Copy link
Collaborator

In cases where the amount of ips is limited, pods affected by a node shutdown remain in Terminating state and do not release their allocations. Deployments are not able to create pods in healthy nodes due to the lack of ips. These changes force the ip reconciler to skip pods marked as deletion by a Taint Manager. The toleration node.kubernetes.io/unreachable is expected to trigger this. However, it is safe if other tolerations with NoExecute also trigger the cleaning up.

In cases where the amount of ips is limited, pods affected by
a node shutdown remain in Terminating state and do not release
their allocations. Deployments are not able to create pods in
healthy nodes due to the lack of ips. These changes force the
ip reconciler to skip pods marked as deletion by a Taint Manager.
The toleration node.kubernetes.io/unreachable is expected to trigger
this. However, it is safe if other tolerations with NoExecute also
trigger the cleaning up.

Signed-off-by: Marcelo Guerrero <[email protected]>
@coveralls
Copy link

Pull Request Test Coverage Report for Build 9855678107

Details

  • 4 of 9 (44.44%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.2%) to 71.783%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/reconciler/wrappedPod.go 4 9 44.44%
Totals Coverage Status
Change from base Build 9746321392: -0.2%
Covered Lines: 1127
Relevant Lines: 1570

💛 - Coveralls

@mlguerrero12 mlguerrero12 changed the title WIP Skip pods marked for deletion Skip pods marked for deletion Jul 10, 2024
Copy link
Member

@dougbtv dougbtv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Seems totally reasonable and really lightweight approach to do it, nicely done.

@mlguerrero12 mlguerrero12 merged commit 8c38117 into k8snetworkplumbingwg:master Jul 17, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants