https://github.com/kubecost/kubecost-eks-blueprints-addon
Kubecost AddOn for EKS Blueprints
https://github.com/kubecost/kubecost-eks-blueprints-addon
aws
Last synced: 5 months ago
JSON representation
Kubecost AddOn for EKS Blueprints
- Host: GitHub
- URL: https://github.com/kubecost/kubecost-eks-blueprints-addon
- Owner: kubecost
- License: apache-2.0
- Created: 2021-12-09T22:47:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-06-17T19:08:37.000Z (about 1 year ago)
- Last Synced: 2025-11-23T09:04:42.380Z (7 months ago)
- Topics: aws
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@kubecost/kubecost-eks-blueprints-addon
- Size: 25.4 KB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Kubecost AddOn for Amazon EKS Blueprints
This repository contains the source code for the Kubecost AddOn for [Amazon EKS Blueprints](https://aws-quickstart.github.io/cdk-eks-blueprints/). This AddOn is a [CDK](https://aws.amazon.com/cdk/) construct that makes it easy for customers to add Kubecost to their Amazon EKS clusters.
[Amazon EKS Blueprints](https://aws-quickstart.github.io/cdk-eks-blueprints/) is a framework that allows customers to create internal development platforms. It abstracts the complexities of cloud infrastructure from developers, and allows them to deploy workloads with ease
Kubecost provides real-time cost visibility and insights by uncovering patterns that create overspending on infrastructure to help teams prioritize where to focus optimization efforts. By identifying root causes for negative patterns, customers using Kubecost save 30-50% or more of their Kubernetes cloud infrastructure costs. To read more about Kubecost and how to use it, see the [product and technical docs](https://docs.kubecost.com/getting-started).
## Installation
Using [npm](https://npmjs.org):
```bash
$ npm install @ibm/kubecost-eks-blueprints-addon
```
## Usage
```javascript
import "source-map-support/register";
import * as cdk from "aws-cdk-lib";
import * as blueprints from "@aws-quickstart/eks-blueprints";
import { KubecostAddOn } from "@kubecost/kubecost-eks-blueprints-addon";
const app = new cdk.App();
const addOn = new KubecostAddOn();
const blueprint = blueprints.EksBlueprint.builder()
.addOns(addOn)
.build(app, "my-stack-name");
```
## `KubecostAddOn` Options (props)
#### `namespace: string` (optional)
The namespace where Kubecost will be installed. Defaults to `kubecost`.
#### `kubecostToken: string` (optional)
You may get one [here](https://kubecost.com/install).
#### `version: string` (optional)
The `cost-analyzer` helm chart version. Defaults to the latest stable version specified in this repo (`1.92.0` at the time of writing).
#### `values?: { [key: string]: any }` (optional)
Custom values to pass to the chart. Config options: https://github.com/kubecost/cost-analyzer-helm-chart/blob/master/README.md#config-options
#### `customPrometheus: string` (optional)
Kubecost comes bundled with a Prometheus installation. However, if you wish to integrate with an external Prometheus deployment, provide your local Prometheus service address with this format `http://..svc`.
Note: integrating with an existing Prometheus is only officially supported under Kubecost paid plans and requires some extra configurations on your Prometheus: https://docs.kubecost.com/custom-prom.html
#### `installPrometheusNodeExporter: string` (optional)
Set to false to use an existing Node Exporter DaemonSet.
Note: this requires your existing Node Exporter endpoint to be visible from the namespace where Kubecost is installed.
https://github.com/kubecost/docs/blob/main/getting-started.md#using-an-existing-node-exporter
#### `repository: string`, `release: string`, `chart: string` (optional)
Additional options for customers who may need to supply their own private Helm repository.
## Support
If you have any questions about Kubecost, catch us [on Slack](https://docs.kubecost.com/support-channels.html)!
## License
The Kubecost SSP AddOn is licensed under the Apache 2.0 license.