Reputation: 53
How do I do chargeback for shared Kubernetes clusters on Azure? Say there are 10 departments/customers using a cluster split by namespaces, How do I bill them?
Upvotes: 1
Views: 1292
Reputation: 6853
You might want to have a look on kubecost.
Kubecost models give teams visibility into current and historical Kubernetes spend and resource allocation. These models provide cost transparency in Kubernetes environments that support multiple applications, teams, departments, etc.
Kubecost
enables you to get:
Real-time cost allocations by all key k8s concepts,
Cost allocation by configurable labels to measure spend by owner, team, department, product, etc.
Dynamic asset pricing enabled by integrations with AWS and GCP billing APIs, estimates available for Azure
Cost allocation metrics for CPU, GPU, memory, and storage
Out of cluster cloud costs tied back to owner
You can also export billing data back to Prometheus for further analysis
Check also this article. It shows a way for checking costs using Grafana.
Upvotes: 1
Reputation: 95
I would recommend you to use tags. That would make it easier for you to filter down the usage and billing as well.
Tags is the easiest and most efficient way to segregate resources.
Upvotes: 1