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

Add controller nodeAffinity to prefer EC2 over Fargate + Retrieve region/AZ from topology label in K8s #1360

Merged
merged 2 commits into from
Sep 26, 2022

Conversation

torredil
Copy link
Member

@torredil torredil commented Aug 23, 2022

What is this PR about? / Why do we need it?

  • Prefer to schedule controller pods on EC2 over Fargate. Using preferredDuringSchedulingIgnoredDuringExecution the scheduler tries to find a node that meets the rule. If a matching node is not available, the scheduler still schedules the Pod.
  • Retrieve region/AZ from topology label in K8s which allows the controller pod to run consistently on Fargate nodes.
  • Fix Error on ebs-csi-controller pod #1357

What testing is done?

  • make test
  • CI

Signed-off-by: Eddie Torres [email protected]

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 23, 2022
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 23, 2022
@torredil torredil force-pushed the fargate-affinity branch 3 times, most recently from a4e7af2 to 4f0275b Compare August 23, 2022 18:16
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 24, 2022
@torredil torredil changed the title Add controller nodeAffinity to prefer EC2 over Fargate Add controller nodeAffinity to prefer EC2 over Fargate + Retrieve region from topology label Aug 24, 2022
@torredil torredil changed the title Add controller nodeAffinity to prefer EC2 over Fargate + Retrieve region from topology label Add controller nodeAffinity to prefer EC2 over Fargate + Retrieve region from topology label in K8s Aug 24, 2022
@torredil torredil changed the title Add controller nodeAffinity to prefer EC2 over Fargate + Retrieve region from topology label in K8s Add controller nodeAffinity to prefer EC2 over Fargate + Retrieve region/AZ from topology label in K8s Aug 24, 2022
@olemarkus
Copy link

This looks pretty nice!

@torredil torredil removed the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 25, 2022
Copy link
Contributor

@ConnorJC3 ConnorJC3 left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot
Copy link
Contributor

@ConnorJC3: changing LGTM is restricted to collaborators

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ConnorJC3, torredil

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 20, 2022
@ConnorJC3
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 26, 2022
@k8s-ci-robot k8s-ci-robot merged commit fcf2fa7 into kubernetes-sigs:master Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error on ebs-csi-controller pod
4 participants