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

ignore static pods owned by a node in node emptiness check #721

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

bwagner5
Copy link
Contributor

@bwagner5 bwagner5 commented Oct 1, 2021

1. Issue, if available:
N/A

2. Description of changes:
I ran into a few problems running Karpenter on kOps because kube-proxy is deployed as a static pod. Static pods have owner references to the node resource they are running on. This change checks if a pod is a static pod when performing karpenter's node emptiness check. Static pods shouldn't hold up node eviction since they are effectively an agent similar to a daemonset which karpenter already ignores.

3. Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: link to issue
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@netlify
Copy link

netlify bot commented Oct 1, 2021

✔️ Deploy Preview for karpenter-docs-prod canceled.

🔨 Explore the source changes: 111773f

🔍 Inspect the deploy log: https://app.netlify.com/sites/karpenter-docs-prod/deploys/6157356252052e0008756bba

ellistarn
ellistarn previously approved these changes Oct 1, 2021
Copy link
Contributor

@ellistarn ellistarn left a comment

Choose a reason for hiding this comment

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

Should it be checked here, too?
func (f *Filter) isUnschedulable(p *v1.Pod) error {

@bwagner5 bwagner5 merged commit 972c40b into aws:main Oct 1, 2021
@bwagner5 bwagner5 deleted the static-pod-emptiness branch October 1, 2021 16:38
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.

None yet

2 participants