AWS Marketplace Install
This document provides the steps for installing the Kubecost product from the AWS marketplace. More info pricing of different Kubecost versions.
Step 1: Create an IAM policy
To deploy Kubecost from AWS Marketplace, you need to assign an IAM policy with appropriate IAM permission to a Kubernetes service account before starting the deployment. You can either use AWS managed policy arn:aws:iam::aws:policy/AWSMarketplaceMeteringRegisterUsage
or create your own IAM policy. You can learn more with AWS' Create and attach your first customer managed policy tutorial.
Here's an example IAM policy:
Step 2: Create an IAM role for service account (IRSA)
We recommend doing this via eksctl. The command below helps to automate these manual steps:
Create an IAM role with AWS-managed IAM policy.
Create a K8s service account name
awsstore-serviceaccount
in your Amazon EKS cluster.Set up a trust relationship between the created IAM role with awsstore-serviceaccount.
Modify
awsstore-serviceaccount
annotation to associate it with the created IAM role
Remember to replace CLUSTER_NAME
with your actual Amazon EKS cluster name.
More details and how to set up the appropriate trust relationships is available here.
Your Amazon EKS cluster needs to have IAM OIDC provider enabled to set up IRSA. Learn more with AWS' Creating an IAM OIDC provider for your cluster doc.
Step 3: Deploy Kubecost with attached IAM role
Define which available version you would like to install using this following command You can check available version titles from the AWS Marketplace product, e.g: prod-1.95.0:
export IMAGETAG=<VERSION-TITLE>
Deploy Kubecost with Helm using the following command:
Run this command to enable port-forwarding and access the Kubecost UI:
You can now start monitoring your Amazon EKS cluster cost with Kubecost by visiting http://localhost:9090
.
Last updated