4개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
1
I think you are on the right track, kubecost is a great solution for this. Unfortunately, there isn't an AWS native way to do this right now.
Some helpful resources:
- Kubecost - https://aws.amazon.com/blogs/containers/how-to-track-costs-in-multi-tenant-amazon-eks-clusters-using-kubecost/
- Cost allocation tags for worker nodes: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html
답변함 2년 전
0
Take a look at the CloudHiro operator https://www.cloudhiro.com/K8S/K8S.php It allows for very good granularity at every level.
답변함 일 년 전
0
I just bumped into this question, so I'll add my answer on top of the previous ones:
- You can use Karpenter's Consolidation feature to make more efficient use of the EC2 nodes. From this doc:
Consolidation: Karpenter works to actively reduce cluster cost by identifying when:
Nodes can be removed because the node is empty
Nodes can be removed as their workloads will run on other nodes in the cluster.
Nodes can be replaced with cheaper variants due to a change in the workloads.
- Use a cost allocation solution to get workload-level cost with aggregations on common K8s constructs (namespace, controller, etc.).
Such solutions are useful for cost allocation for multi-tenant K8s clusters, as well as container requests right-sizing.
You already mentioned Kubecost, it's indeed a common 3rd party solution in this space, which has self-managed and SaaS deployment models.
It's based on the OpenCost, which is an open source project that provides a specification for K8s cost allocation and a deployment option.
Kubecost itself isn't open source, it's a commercial product. See pricing tiers in the Kubecost pricing page and feature-set comparison in the product comparison page.
Kubecost also collaborated with AWS to deliver an EKS-optimized bundle of Kubecost.
After the initial launch, other features were added, such as AMP integration, multi-cluster visibility and Cognito integration.
See more information on the EKS cost monitoring user guide, and especially see the first question in the FAQs, where you can find the comparison between the Kubecost EKS-optimized bundle and the regular Kubecost tiers.
I also developed a solution to visualize data from Kubecost in QuickSight, called Containers Cost Allocation Dashboard.
It's open source, you can find all the information including deployment instructions in the public GitHub repo.
It's part of the CID (Cloud Intelligence Dashboards) framework
답변함 한 달 전
관련 콘텐츠
- AWS 공식업데이트됨 8달 전
- AWS 공식업데이트됨 2년 전