In the Container service, costs are allocated based on the value of a specific Key.
For accurate Container cost allocation, each resource must be tagged with an appropriate value using the Tag Key
cz_container_bill
.Available items are as follows:
1. Cluster Cost
Costs aggregated from K8S cluster usage
Multiple services share the cluster, requiring cost allocation
Aggregation and allocation logic
Aggregation Logic
Tag resources as
cz_cluster_xxx
to be recognized as K8S usage
Allocation Logic
Map K8S namespace to services
Aggregate memory usage per namespace
Distribute costs to services based on namespace memory usage
Allocate costs among companies using each service (service-based cost allocation)
Value format: cz_cluster_{user_defined}
Example: cz_cluster_dev
, cz_cluster_prod
2. Service Common Cost
Costs incurred from using software like DB installed on a VM
Multiple services share software on the VM, requiring cost allocation
Aggregation and allocation logic
Aggregation Logic
Tag shared resources as
cz_common_xxx
Allocation Logic
Distribute costs equally among services tagged with
cz_common_xxx
Allocate costs among companies using each service (service-based cost allocation)
Value format: cz_common_{user_defined}
Example: cz_common_subcom
3. Service Exclusive Cost
Costs incurred from using a service exclusively
Aggregation and allocation logic
Aggregation Logic
Tag resources used by the service with a unique service identifier
Allocation Logic
Allocate costs among companies using each service (service-based cost allocation)
Value format: {user_defined serviceCode}
Example: mobile
, mcmp
, dev_test
4. Common Cost
Costs shared among all companies
Allocated based on company-specific cost-sharing ratios
Aggregation and allocation logic
Aggregation Logic
Common costs are derived by subtracting (1) Cluster Cost, (2) Service Common Cost, and (3) Service Exclusive Cost from total costs
Allocation Logic
Allocated among companies based on cost-sharing ratios
Value format: N/A (No specific value required)
Table Of Contents
Online consultation
Contact us