Kubernetes
Kubernetes
What the LevelFour agent does in a Kubernetes cluster, what you see once it reports, and where to install, upgrade and remove it.
The LevelFour agent runs in your cluster as a single pod. It reads how each workload is configured and how much CPU and memory it uses, and sends that to LevelFour over HTTPS. LevelFour prices it against your cloud bill, or against hourly prices you set for a cluster with no cloud bill, so you see cost per namespace, workload, container and node, and get rightsizing recommendations for the namespaces you choose. The agent changes nothing in your cluster. What the agent reads lists every permission and every field it sends. An optional automation component, which you install separately and turn on per namespace, can resize pods after OOM kills and merge the pull requests you allow.
The agent runs on Amazon EKS, Google Kubernetes Engine, Azure Kubernetes Service and any other cluster on Kubernetes 1.23 or later. For a cluster that cannot run it, your bill can still show cost per namespace: see Clusters without the agent.
Install and keep it current
Install
One cluster with Helm.
Install with GitOps
Many clusters with one install key, through Argo CD, Flux or Terraform.
Upgrade
Move to a new chart version, and the steps a breaking change asks first.
Changelog
What each agent version adds, and the permissions it adds.
Uninstall
Remove the agent and disconnect the cluster.
Troubleshooting
What each answer in the agent's logs means, and how to fix it.
What you see and when
- Configuration and usage: on the Kubernetes page within a few minutes, for every namespace. The Overview tab's Resources and utilization chart shows allocatable, requested and used CPU and memory by the hour for a window of up to 31 days, and by the day for a longer one. The Costs tab's Efficiency lens charts them by the day.
- Costs: after the next delivery of your billing data, usually within a day, and up to two days for the Google Cloud export. The most recent day stays marked as not yet priced until the bill covers it. On a cluster with no cloud bill, within about 12 hours of setting node prices.
- Recommendations: once a labelled namespace has at least 7 days of usage, they start to appear on the Savings page next to your other recommendations, and you approve them the same way. Each one becomes a pull request on the repository that deploys the workload.