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

Lables from Instance Metada #1594

Open
rrmarq opened this issue Aug 22, 2024 · 3 comments
Open

Lables from Instance Metada #1594

rrmarq opened this issue Aug 22, 2024 · 3 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@rrmarq
Copy link

rrmarq commented Aug 22, 2024

Description

What problem are you trying to solve?
Have instance metadata values as labels

How important is this feature to you?
My internal observability tools make use of the AMI_ID and INSTANCE_ID, which we set to the lables LABEL_AMI_ID and LABEL_INSTANCE_ID respectively.
Currently we are setting these labels in the userData, however, doing this way we cannot make use of the AL2/AL2023 AMIs.
We need theses labels being set by Karpenter so that we can use auto-generated userdata.

@rrmarq rrmarq added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 22, 2024
@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Aug 22, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If Karpenter 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-sigs/prow repository.

@njtran
Copy link
Contributor

njtran commented Sep 3, 2024

Are the values for AMI_ID and INSTANCE_ID being fetched from IMDS? Then propagating that to labels in their userData. I'm not sure how we would do this, as this would require parsing IMDS's internally structured data into labels that they can use, which can really only be done without a structured userData (not bottlerocket or AL2023 iiuc).

The way to do this in Karpenter would be to add these as first class labels, where they're either propagated after the result of the cloudprovider.Create() call or reconciled onto the node after the fact.

Are these labels used for anything like scheduling constraints? Or is it purely for monitoring purposes? What are the full set of labels you pull from IMDS? Also this issue should probably live in https://github.com/aws/karpenter-provider-aws

@rrmarq
Copy link
Author

rrmarq commented Sep 3, 2024

Yes, today the values are fetched from IMDS

Are the values for AMI_ID and INSTANCE_ID being fetched from IMDS?

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-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

3 participants