kosmos-io / kosmos-io/kosmos

Add workloadpolicy plugin for kosmos-scheduler

Open
#809 0 comments 0 reactions 0 assignees View on GitHub
kind/feature
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
```
![image](https://github.com/user-attachments/assets/411c3cde-bd76-4f95-be85-c51be8915dca)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.