Allow Storing Join Token in SSM Parameter Store Instead of User Data #4871
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
/kind feature
Describe the solution you'd like
As a CAPA user, I'd like to be able to only have new revisions of launch templates when configuration materially changes, making it very clear what's going on if I need to compare configuration. Additionally, I would like to be able to use fully custom launch templates managed outside the CAPI/CAPA ecosystem, as a means to more easily enable Karpenter on workload clusters. To that end, I propose moving the join token for worker nodes to SSM Parameter Store (or some suitable alternative which workers can access at startup) as an opt-in feature.
Anything else you would like to add:
Fully open to admitting that this is partially a selfish request because it fixes a tooling problem that I have. We've written in-house tooling which gracefully drains nodes so they can be replaced based on a number of conditions, including not running a launch template which matches the current one for their ASG. Because the launch template changes every few minutes in the default configuration, we were seeing replacement of nodes near-constantly. Working around this involved increasing the max age of the token to a considerably longer timeframe to provide stability, at the cost of the security of frequently rotating the token.
Secondarily, with the way that Karpenter works, we have no mechanism to cleanly get the join token into its configuration except to have an external controller read the token and push it down to somewhere that Karpenter can read, whether that's directly modifying the user data on the NodeClass with the updated token or pushing the token to an external location on an interval and just changing the user data to read that. While we could technically put a custom controller in place on our management cluster and have it pushing to SSM on our behalf, it'd be very nice to just have the plumbing directly integrated in CAPA, and would provide an easier adoption path for other users.
Environment:
kubectl version
): 1.27.10/etc/os-release
): Ubuntu 22.04.4The text was updated successfully, but these errors were encountered: