Skip to content

Placement API to allow multiple ManifestWorks to be assigned to the same cluster #155

@ghost

Description

Hi, I'm working on building a multi-cluster autoscaler.
One idea is to create custom resources on top of ManifestWork, like Deployment for Pod, and scale the replicas of it.
I intend to have the custom resource controller generate name-[UUID] ManifestWorks.

The problem with building a multi-cluster autoscaler based on the above idea is that the Placement API doesn't allow multiple ManifestWork assignments to the same cluster.

If there are cluster-1 and cluster-2, and numberOfClusters is 3, the PlacementDecision would be as follows.

status:
  decisions:
  - clusterName: cluster-1
    reason: ""
  - clusterName: cluster-2
    reason: ""

Are there any plans to add numberOfResources param, for example, in the future to allow for it?

In that case, the PlacementDecision would be as follows.

status:
  decisions:
  - clusterName: cluster-1
    resources: 2
    reason: ""
  - clusterName: cluster-2
    resources: 1
    reason: ""

If that is not planned, I would build a custom scheduler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions