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

cni-metrics-helper: Replace CLUSTER_ID with eks:cluster-name tag #775

Closed
groodt opened this issue Dec 28, 2019 · 4 comments
Closed

cni-metrics-helper: Replace CLUSTER_ID with eks:cluster-name tag #775

groodt opened this issue Dec 28, 2019 · 4 comments

Comments

@groodt
Copy link
Contributor

groodt commented Dec 28, 2019

It seems that the "official" EKS tags applied automatically by EKS node-groups is eks:cluster-name and not CLUSTER_ID or Name.

Would you accept a PR to replace either or both of these values with eks:cluster-name?

If not, I believe that cni_metrics_helper is unusable with EKS managed nodegroups as they do not allow custom tags such as CLUSTER_ID or Name to be propagated to the EC2 instances.

@mogren
Copy link
Contributor

mogren commented Dec 28, 2019

@groodt Thanks, sounds like an improvement we should do, and all PRs are welcome. 😄

@manfredlift
Copy link

Any updates on this? We are considering using managed workers (EKS node groups) instead of unmanaged workers, but this makes the transition difficult if we don't want to give up CNI metrics.

@groodt
Copy link
Contributor Author

groodt commented Feb 18, 2020

Hey @manfredlift

I haven't had any time to look at this, but hope to soon. I'm also happy if somebody else wishes to pick it up.

The location in the code is here I believe:

clusterID, err := ec2Client.GetClusterTag("CLUSTER_ID")

There is also a chance that EKS allows us to propagate tags to instances in managed node groups in future, so it could also get "fixed" on that end. I think it would be cleaner if the cni-metrics-helper used the "standard" tags though, because then all you need to do is install the CNI plugin and cni metrics helper to an EKS cluster and it should "just" work.

@mogren
Copy link
Contributor

mogren commented Mar 4, 2020

Fixed in #856

@mogren mogren closed this as completed Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants