@kubecost/kubecost-ssp-addon
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

Kubecost AddOn for AWS SSP CDK Platform

This repository contains the source code for the Kubecost AddOn npm module.

ssp-amazon-eks is a CDK construct that makes it easy for customers to build and deploy a Shared Services Platform (SSP) on top of Amazon EKS.

Installation

Using npm:

$ npm install @kubecost/kubecost-ssp-addon

Usage

import 'source-map-support/register';
import * as cdk from '@aws-cdk/core';
import * as ssp from '@aws-quickstart/ssp-amazon-eks';
import { KubecostAddOn } from '@kubecost/kubecost-ssp-addon';

const app = new cdk.App();

// Include the Kubecost AddOn in your list
// Grab your token from kubecost.com/install (it's free)
const addOns: Array<ssp.ClusterAddOn> = [
    new KubecostAddOn({kubecostToken : 'kubecost_token'}),
];

const account = 'account_number'
const region = 'aws_region'
const props = { env: { account, region } }
new ssp.EksBlueprint(app, { id: 'cluster_id', addOns}, props)

KubecostAddOn Options (props)

namespace: string (optional)

The namespace where Kubecost will be installed. Defaults to kubecost.

kubecostToken: string (optional)

You may get one here.

version: string (optional)

The cost-analyzer helm chart version. Defaults to the latest version specified in this repo (1.88.1 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

Support

If you have any questions about Kubecost, catch us on Slack!

License

The Kubecost SSP AddOn is licensed under the Apache 2.0 license.

Readme

Keywords

none

Package Sidebar

Install

npm i @kubecost/kubecost-ssp-addon

Weekly Downloads

2

Version

1.0.8

License

Apache-2.0

Unpacked Size

18 kB

Total Files

5

Last publish

Collaborators

  • ajaytripathy
  • aligon
  • jjarrettkube21
  • rayhatfield
  • alex-kubecost
  • tevans-kubecost
  • wolfeaustin
  • nealormsbee