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

Update cost-monitoring.md #751

Merged
merged 1 commit into from
Jun 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions doc_source/cost-monitoring.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Amazon EKS provides an AWS optimized bundle of Kubecost for cluster cost visibil

1. Determine the version of Kubecost to install\. You can see the available versions at [kubecost/cost\-analyzer](https://gallery.ecr.aws/kubecost/cost-analyzer) in the Amazon ECR Public Gallery\. For more information about the compability of Kubecost versions and Amazon EKS, see the [Environment Requirements](https://docs.kubecost.com/install-and-configure/install/environment) in the Kubecost documentation\.

1. Install Kubecost with the following command\. Replace *kubecost\-version* with the value retreived from ECR, such as *1\.108\.1*\.
**Option 1: Helm Chart**: (Applicable for Free License with 250 Cores Limit): Install Kubecost with the following command\. Replace *kubecost\-version* with the value retreived from ECR, such as *1\.108\.1*\.

```
helm upgrade -i kubecost oci://public.ecr.aws/kubecost/cost-analyzer --version kubecost-version \
Expand All @@ -57,6 +57,13 @@ Amazon EKS provides an AWS optimized bundle of Kubecost for cluster cost visibil

Kubecost releases new versions regularly\. You can update your version using [https://helm.sh/docs/helm/helm_upgrade/](https://helm.sh/docs/helm/helm_upgrade/)\. By default, the installation includes a local [https://prometheus.io/](https://prometheus.io/) server and `kube-state-metrics`\. You can customize your deployment to use [Amazon Managed Service for Prometheus](https://aws.amazon.com/blogs/mt/integrating-kubecost-with-amazon-managed-service-for-prometheus/) by following the documentation in [Integrating with Amazon EKS cost monitoring](https://docs.aws.amazon.com/prometheus/latest/userguide/integrating-kubecost.html)\. For a list of all other settings that you can configure, see the [sample configuration file](https://github.com/kubecost/cost-analyzer-helm-chart/blob/develop/cost-analyzer/values-eks-cost-monitoring.yaml) on GitHub\.

**Option 1: EKS Add-on**: (Applicable for AWS Optimized License without any Limit): Install Kubecost with the following command to have it added as an EKS Add-on\. You need to replace *$YOUR_CLUSTER_NAME* and *$AWS_REGION* accordingly with your actual Amazon EKS cluster name and AWS region.

```
aws eks create-addon --addon-name kubecost_kubecost --cluster-name $YOUR_CLUSTER_NAME --region $AWS_REGION
```
For more details on the integration of Kubecost Add-on over EKS Console, explore the announcement post at: [New – AWS Marketplace for Containers Now Supports Direct Deployment to Amazon EKS Clusters](https://aws.amazon.com/blogs/aws/new-aws-marketplace-for-containers-now-supports-direct-deployment-to-amazon-eks-clusters/)

1. Make sure the required Pods are running\.

```
Expand Down Expand Up @@ -191,4 +198,4 @@ Kubecost provides a web dashboard that you can access through `kubectl` port for

#### Is Amazon EKS Anywhere supported?<a name="cost-monitoring-faq-eks-a"></a>

No\.
No\.