Add workloadpolicy plugin for kosmos-scheduler
- Dominant language
- Go
- Stars
- 260
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
**What would you like to be added**:
Add workloadpolicy plugin for kosmos-scheduler. Workloadpolicy plugin will help scheduling pods cross zones, regions or clusters.
- [ ] release-1.21.5
- [ ] main
**Why is this needed**:
K8s's topologySpreadConstraint helps schedule pods with desired skew, but it can not solve the issue: schedule desired replicas to a zone, region or cluster, e.g.
```yaml
regionA: 5 Pods
regionB: 3 Pods
```

Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the kosmos-scheduler plugin entry points and reviewing how Kubernetes topologySpreadConstraint handles pod placement. Define the workloadpolicy behavior for distributing desired replicas across zones, regions, or clusters, then verify scheduling against the regionA/regionB example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- distributed-systems, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100