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

Re-enable Windows Karpenter nodes #1011

Merged
merged 2 commits into from
Dec 13, 2024
Merged

Re-enable Windows Karpenter nodes #1011

merged 2 commits into from
Dec 13, 2024

Conversation

mvandenburgh
Copy link
Member

This re-enables Karpenter support for Windows. This will get us back to autoscaling based on load, instead of just running a couple static instances 24/7.

The issue turned out to be an IAM policy that needed to be attached to the Karpenter controller node, in order for Windows nodes to have the necessary permissions to create EC2 instance profiles. Previously, Karpenter created a static instance profile for all nodes, but starting in v1, they changed the behavior. Since we're using Karpenter for both Linux and Windows nodes, there's some complications to setting up the Terraform modules; I've expanded on the details in a code comment.

@mvandenburgh
Copy link
Member Author

Job scheduled on a Karpenter windows node in staging - https://gitlab.staging.spack.io/spack/spack/-/jobs/108126

Copy link
Collaborator

@jjnesbitt jjnesbitt left a comment

Choose a reason for hiding this comment

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

Awesome! Guess we'll want to keep an eye on windows jobs for a little while to make sure things are going according to plan.

@mvandenburgh mvandenburgh merged commit 0d933bc into main Dec 13, 2024
5 checks passed
@mvandenburgh mvandenburgh deleted the fix-karpenter-windows branch December 13, 2024 17:38
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.

2 participants