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

Ensure jobs are scheduled on specified shard id through nodeSelectors #2606

Open
mmartin24 opened this issue Jul 5, 2024 · 0 comments
Open

Comments

@mmartin24
Copy link
Collaborator

Follow up on this comment of node selection of shards.

Issue

After defining shards through nodeSelectors, they gitjobs are correctly processed using the specified , but Jobs are scheduled randomly (details in link above)

Basically, given a label on git repo pointing to shard-2; namely fleet.cattle.io/shard-ref: shard2 and this shard config...

{
    "debug": true,
    "debugLevel": 1,
    "shards": [
      {
        "id": "shard0",
        "nodeSelector": {
          "kubernetes.io/hostname": "k3d-local-two-server-2-agent-agent-1"
        }
      },
      {
        "id": "shard1"
      },
      {
        "id": "shard2",
        "nodeSelector": {
          "kubernetes.io/hostname": "k3d-local-two-server-2-agent-agent-0"
        }
      }
    ]
  }

...the expectation is that theJob scheduled would take place in node k3d-local-two-server-2-agent-agent-0.
Instead it got scheduled on k3d-local-two-server-2-agent-agent-1 as can be seen:

Image

Request

Pls ensure job scheduling takes place where in the specific node lead by nodeSelector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 👀 In review
Development

No branches or pull requests

3 participants