Skip to content

feat: add Killercoda scenario for Workload Affinity and Anti-Affinity scheduling (v1.17)#24

Open
Ram04102007 wants to merge 2 commits into
karmada-io:mainfrom
Ram04102007:main
Open

feat: add Killercoda scenario for Workload Affinity and Anti-Affinity scheduling (v1.17)#24
Ram04102007 wants to merge 2 commits into
karmada-io:mainfrom
Ram04102007:main

Conversation

@Ram04102007
Copy link
Copy Markdown

What this PR does

Adds a new interactive Killercoda scenario for the Workload Affinity
and Anti-Affinity Scheduling feature introduced in Karmada v1.17.

Why

The playground currently has 4 scenarios but none covering the new
WorkloadAffinity feature shipped in v1.17 (March 2026). This fills
that gap and aligns with the LFX Mentorship 2026 Term 1 goal of
adding tutorials for current Karmada features.

Scenario structure

  • Step 1: Verify the multi-cluster environment
  • Step 2: Deploy workloads with Affinity (co-location)
  • Step 3: Deploy workloads with Anti-Affinity (spreading)
  • Step 4: Inspect ResourceBinding scheduling decisions

Closes karmada-io/karmada#7498

@karmada-bot karmada-bot requested a review from jwcesign May 10, 2026 14:26
@karmada-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign rainbowmango for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@karmada-bot karmada-bot requested a review from RainbowMango May 10, 2026 14:26
@karmada-bot
Copy link
Copy Markdown
Contributor

Welcome @Ram04102007! It looks like this is your first PR to karmada-io/playground 🎉

@karmada-bot karmada-bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label May 10, 2026
… scheduling (v1.17)

Signed-off-by: Sriram Thiruveedhula <sriram.thiruveedhula2007@gmail.com>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new Killercoda interactive scenario focused on Workload Affinity and Anti-Affinity scheduling in Karmada v1.17. The scenario includes a background setup script, four instructional steps with verification scripts, and a final summary. Feedback was provided regarding the background setup script, specifically recommending the removal of error masking during the scheduler rollout and increasing the timeout to ensure the environment is correctly initialized before the user begins the tutorial.

Comment thread karmada-workload-affinity-example/background.sh Outdated
Signed-off-by: Sriram Thiruveedhula <sriram.thiruveedhula2007@gmail.com>
@Ram04102007
Copy link
Copy Markdown
Author

Hi @RainbowMango @jwcesign — gentle ping on this PR.
Happy to make any changes if needed. Thanks for your time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Playground] Add Killercoda interactive scenario for Workload Affinity and Anti-Affinity Scheduling

2 participants