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

Don't schedule pods in fargate nodes #260

Merged
merged 1 commit into from
Oct 6, 2020

Conversation

limed
Copy link
Contributor

@limed limed commented Sep 24, 2020

Issue #177

Description of changes:
This resolves an issue where the aws calico pods tries to get scheduled on a fargate pod, adding affinity to make sure that it will not be scheduled on fargate.

This solution is taken from a similar problem with the aws-node-termination-handler chart in commit 86c6e24 so if there is a different method of solving this let me know

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

Copy link
Contributor

@mogren mogren left a comment

Choose a reason for hiding this comment

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

🚀

Comment on lines +22 to +30
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: "eks.amazonaws.com/compute-type"
operator: NotIn
values:
- fargate
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks, looks good. We should probably add checks for OS and Arch as well, since the default Calico image will only work on Linux on amd64. That can be a separate PR.

Copy link
Contributor

@jaypipes jaypipes left a comment

Choose a reason for hiding this comment

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

👍 awesome, thank you @limed! :)

@jaypipes jaypipes merged commit f84a03c into aws:master Oct 6, 2020
@limed limed deleted the limed/calico-fargate branch October 6, 2020 16:22
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

3 participants