In this section, we will install and configure the open source Kubecost project, which gives you cost-related visibility into your Kubernetes resources. You will learn how to monitor resource costs to reduce spending and potentially prevent resource-based outages.
This recipe requires a functional Kubernetes cluster deployed on AWS or GCP. Currently, other cloud providers are not supported.
Before you can execute the commands in the following recipes, you need to have kubectl and helm installed. You can find the instructions to install Helm in Chapter 2, Operating Applications on Kubernetes, in the Deploying workloads using Helm charts section.
How to do it…
This section is further divided into the following subsections to ease the process:
- Installing Kubecost
- Accessing Kubecost dashboard
- Monitoring Kubernetes resource cost allocation
Kubecost creates Kubernetes resource-granular models of current...