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

umbrella issue: deprecating zones in Cluster API #3952

Closed
6 tasks done
RainbowMango opened this issue Aug 18, 2023 · 14 comments
Closed
6 tasks done

umbrella issue: deprecating zones in Cluster API #3952

RainbowMango opened this issue Aug 18, 2023 · 14 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Milestone

Comments

@RainbowMango
Copy link
Member

RainbowMango commented Aug 18, 2023

What would you like to be added:
This issue tracks subsequent tasks of deprecating zone with zones.

Why is this needed:

@RainbowMango RainbowMango added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 18, 2023
@whitewindmills
Copy link
Member

Adopt zones in scheduler spread by constraints

maybe we don't need this task because zone spread constraint has not been supported in the master branch. I'll consider zones fields in the new spread-constraint pr.

@RainbowMango
Copy link
Member Author

Adopt zones in resource selector,

What about this one?

Adopt zones in scheduler filter

This one might be a challenge too.

@whitewindmills
Copy link
Member

others look good to me.

@zishen
Copy link
Member

zishen commented Aug 22, 2023

I'm interested in this, too. How about I contribute Add validation for zones and Transform potential zone to zones?
@whitewindmills

@RainbowMango
Copy link
Member Author

@zishen Please go for it.

@whitewindmills
Copy link
Member

Adopt zones in resource selector

I'm about to complete this task but have an ambiguous problem. For example, zones of cluster member1 are zone-a,zone-b,zone-c.

  1. I use such cluster affinity: zone NotIn [zone-a zone-b], does cluster member1 match it?
  2. I use such cluster affinity: zone In [zone-a zone-b], does cluster member1 match it?

@RainbowMango
Copy link
Member Author

That's a good question and I don't have a clue yet.
What's your opinion then?

@whitewindmills
Copy link
Member

question 1 & 2 are both match cluster member1. only zone NotIn [zone-a zone-b zone-c] cannot match it. what do you think of this rule?

@RainbowMango
Copy link
Member Author

My concern is that if the user wants to propagate a resource to a cluster that requires the cluster in a specific zone.
For the example above, he/she requires a cluster in zone-a, if the scheduler selects member1, we can't guarantee the resource would be scheduled to the node in zone-a.

Obviously, we need to do something about that. But before that, I'd like to take an exact match.

For your answers, I tend to Q1 and Q2 do not match.

@whitewindmills
Copy link
Member

Maybe we can add a field to give the user the choice of whether to match exactly, For example:

clusterAffinity:
  fieldSelector:
    matchExpressions:
    - key: zone
      operator: In
      values:
      - zone-a
      - zone-b
  zoneMatchBehavior: Exactly

@RainbowMango
Copy link
Member Author

Maybe we can add a field to give the user the choice of whether to match exactly,

Will see. That's an option for the future.

@whitewindmills
Copy link
Member

Obviously, we need to do something about that. But before that, I'd like to take an exact match.

okay, let's implement it this way for now.

@RainbowMango
Copy link
Member Author

Many thanks to @whitewindmills @zishen for the help, all tasks have been finished.
/assign @whitewindmills @zishen
/close

@karmada-bot
Copy link
Collaborator

@RainbowMango: Closing this issue.

In response to this:

Many thanks to @whitewindmills @zishen for the help, all tasks have been finished.
/assign @whitewindmills @zishen
/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

4 participants