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

Allow Storing Join Token in SSM Parameter Store Instead of User Data #4871

Open
isugimpy opened this issue Mar 15, 2024 · 1 comment
Open
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.

Comments

@isugimpy
Copy link

/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:

  • Cluster-api-provider-aws version: 2.3.0
  • Kubernetes version: (use kubectl version): 1.27.10
  • OS (e.g. from /etc/os-release): Ubuntu 22.04.4
@k8s-ci-robot k8s-ci-robot added 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. labels Mar 15, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If CAPA/CAPI contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants