Skip to content

Conversation

@shayrybak
Copy link

@shayrybak shayrybak commented Nov 19, 2025

Fixes #1240

Description

This PR adds support for dynamically configuring EC2 Fleet allocation strategies on EC2NodeClass resources, addressing the long-standing feature request in #1240. Users can now specify allocation strategies for both on-demand and spot instances instead of relying on hardcoded defaults.

How was this change tested?
Added tests both at the unit level and integration tests and all passed.

The implementation includes:

  • Unit tests for parsing functions
  • Unit tests for CreateFleetInputBuilder
  • Integration tests for end-to-end flow
  • Backward compatibility verification

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@shayrybak shayrybak requested a review from a team as a code owner November 19, 2025 08:35
@shayrybak shayrybak requested a review from bwagner5 November 19, 2025 08:35
@netlify
Copy link

netlify bot commented Nov 19, 2025

Deploy Preview for karpenter-docs-prod ready!

Name Link
🔨 Latest commit 8f4b6e7
🔍 Latest deploy log https://app.netlify.com/projects/karpenter-docs-prod/deploys/691d81449474850008f83f04
😎 Deploy Preview https://deploy-preview-8713--karpenter-docs-prod.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Options for specifying AWS EC2 fleet allocation strategy

1 participant