Updated on 2025-07-24 GMT+08:00

Billing Examples

Scenario 1

You purchased a pay-per-use CCE Autopilot cluster in AP-Bangkok for testing services on the cloud. The operation details are as follows:

  1. At 15:30:00 on March 18, 2023, you purchased a CCE Autopilot cluster. The specifications are as follows:

    For ease of description, assume that all the resources involved were created at the same time. There may be a time difference of several seconds. You can view the actual time on the console.

    • Billing mode: pay-per-use
    • SNAT (advanced settings): enabled
    • Add-ons: CoreDNS and Kubernetes Metrics Server. Two Deployments were automatically created for the add-ons:
      • Deployment for CoreDNS

        Pods: 2

        vCPU: 1

        Memory: 2 GiB

        Ephemeral storage of a single pod: 30 GiB (free)

      • Deployment for Kubernetes Metrics Server

        Pods: 2

        vCPU: 1

        Memory: 2 GiB

        Ephemeral storage of a single pod: 30 GiB (free)

  2. At 15:36:00 on March 18, 2023, you created a Deployment named nginx. The specifications are as follows:
    • Pods: 2 (one container in each pod)
    • Container image: nginx:latest
      • Container vCPU: 0.5 vCPUs
      • Container memory: 1 GiB
    • Create a LoadBalancer Service. The load balancer details are as follows:
      • Type: dedicated load balancer
      • AZ: single AZ
      • Specifications: network load balancing (TCP/UDP), small I (10 LCUs)
      • EIP type: dynamic BGP
      • EIP bandwidth: 5 Mbit/s, billed by traffic
    • Ephemeral storage of a single pod: 30 GiB (free)
  3. At 09:36:00 on March 19, 2023, you decided to use the cluster for a long time and subscribed to four 1,000 vCPU-hours CPU monthly packages and seven 1,000 GiB-hours memory monthly packages (expiration time of all packages: April 19, 2023, 23:59:59).
  4. At 20:36:00 on April 5, 2023, you deleted the LoadBalancer Service for the Deployment.
  5. At 21:06:00 on April 19, 2023, you deleted the cluster and related resources.
Figure 1 Operation timeline

Table 1, Table 2, and Table 3 list the incurred expenditures by resource type.

  • According to Table 1, the total expenditure of the cluster is $77.36 USD + $21.6608 USD + $84.862 USD = $183.8828 USD.
  • In Table 2, the total expenditure of the pods is 0.0172 + 0.004 + 3.741+ 0.87 + 155.52 + 29.68 + 2.805 = $192.6372 USD.
  • In Table 3, the total expenditure of the load balancer is 30.4015 + 1.08 = $31.4815 USD.

The total expenditure is $408.0015 USD.

*In pay-per-use billing, the resource usages are billed by the second and the amount due is truncated to the 2nd decimal place. This amount may vary depending on the actual bill.

Table 1 Cluster expenditures

Usage Period

Billing Mode

Billed Duration and Traffic

Billing Factors and Unit Prices

Expenditures*

2023/03/18 15:30:00 ~ 2023/04/19 21:06:00

Pay-per-use

773.6 hours (33 days, including March 18 and April 19)

5-GB public network traffic

  • Cluster management: $0.1 USD/hour (AP-Bangkok)
  • VPC endpoints:
    • VPC endpoint for API Server: $0.014 USD/hour
    • VPC endpoint for SWR: $0.014 USD/hour
  • SNAT
    • NAT gateway: $2.438 USD/day
    • EIP: $0.005 USD/hour
    • Bandwidth: $0.108 USD/GB
  • Cluster management: 773.6 × 0.1 = $77.36 USD
  • VPC endpoints: 773.6 × 0.028 = $21.6608 USD
  • SNAT: 33 × 2.438 + 773.6 × 0.005 + 5 × 0.108 = $84.862 USD
Table 2 Pod expenditures

Usage Period

Billing Mode

Required Duration

Billing Factors and Unit Prices

Expenditures*

From 15:30:00 on March 18, 2023 to 15:36:00 on March 18, 2023

Pay-per-use

0.1 hours

  • Pods for the add-ons:
    • vCPU: $0.043 USD/hour per vCPU
    • Memory: $0.005 USD/hour per GiB
  • vCPU: 0.1 × 4 × 0.043 = $0.0172 USD
  • Memory: 0.1 × 8 × 0.005 = $0.004 USD

From 15:36:00 on March 18, 2023 to 09:00:00 on March 19, 2023

Pay-per-use

17.4 hours

  • Pods for the add-ons and Deployment:
    • vCPU: $0.043 USD/hour per vCPU
    • Memory: $0.005 USD/hour per GiB
  • vCPU: 17.4 × (4 × 0.043 + 1 × 0.043) = $3.741 USD
  • Memory: 17.4 × (8 × 0.005 + 2 × 0.005) = $0.87 USD

From 09:00:00 on March 19, 2023 to 13:00:00 on April 17, 2023

vCPU package (4 packages)

Memory package (7 packages)

700 hours

  • Autopilot general-computing 1,000 vCPU-hours CPU monthly package: $38.88 USD/month
  • Autopilot general-computing 1,000 GiB-hours memory monthly package: $4.24 USD/month
  • vCPU package: 4 × 38.88 = $155.52 USD
  • Memory package: 7 × 4.24 = $29.68 USD

From 13:00:00 on April 17, 2023 to 21:06:00 on April 19, 2023

vCPU packages (packages still used but their expenditures already included in the previous period)

Pay-per-use memory (7,000-GiB memory used up)

56.1 hours

  • Pods for the add-ons and Deployment:
    • Memory: $0.005 USD/hour per GiB (The memory in the packages has been used up.)
  • Memory: 56.1 × (8 × 0.005 + 2 × 0.005) = $2.805 USD
Table 3 Load balancer expenditures

Usage Period

Billing Mode

Billed Duration and Traffic

Billing Factors and Unit Prices

Expenditures*

From 15:36:00 on March 18, 2023 to 20:36:00 on April 5, 2023

Pay-per-use

437 hours, 10-GB public network traffic

  • Load balancer: $0.0695 USD/hour
  • Public network traffic: $0.108 USD/GB
  • Load balancer: 437 × 0.0695 = $30.4015 USD
  • Public network traffic: 10 x 0.108 = $1.08 USD

Scenario 2

You deployed a large number of applications in a CCE Autopilot cluster in AP-Bangkok. It was estimated that 12,000 vCPUs and 48,000 GiB of memory were required for one year, so you purchased one Autopilot general-computing 12,000 vCPU-hours CPU yearly package and four Autopilot general-computing 12,000 GiB-hours memory yearly packages in advance. In the middle of the year, it was estimated that 36,000 vCPUs and 57,800 GiB of memory were required for new services. You wanted to know which billing mode was the most cost-effective for the new services.

*In pay-per-use billing, the amount due is truncated to the 2nd decimal place. This amount may vary depending on the actual bill.

  • If the CCE Autopilot cluster is not required after the current year, the combination of pay-per-use billing and packages can help save costs. The following table compares the two billing modes in detail.
    Table 4 Billing mode comparison

    Billing Mode

    Billing Rules

    Expenditures*

    Pay-per-use

    • vCPU: Unit price × Number of vCPUs × Usage duration
    • Memory: Unit price × Memory size × Usage duration
    • vCPU: 30,000 x 0.043 = $1,290 USD
    • Memory: 57,800 × 0.005 = $289 USD

    Total: $1,579 USD

    Packages

    • 3 x Autopilot general-computing 12,000 vCPU-hours CPU yearly package
    • 5 x Autopilot general-computing 12,000 GiB-hours memory yearly package
    • vCPU: 3 × 388.8 = $1,166.4 USD
    • Memory: 5 × 42.44 = $212.2 USD

    Total: $1,378.6 USD

    Pay-per-use and packages

    • vCPU: 3 × Autopilot general-computing 12,000 vCPU-hours CPU yearly package
    • Memory: 4 × Autopilot general-computing 12,000 GiB-hours memory yearly package + 7 × Autopilot general-computing 1,000 GiB-hours memory monthly package + 800 GiB-hour pay-per-use memory
    • vCPU: 3 × 388.8 = $1,166.4 USD
    • Memory: 4 × 42.44 + 7 × 4.24 + 800 × 0.005 = $203.44 USD

    Total: $1369.84 USD

  • Assume that you want to use the CCE Autopilot cluster in the next year and about 80,000 to 100,000 vCPU-hours and 110,000 to 150,000 GiB-hours are required from the middle of the current year to the next year.
    • For vCPUs, you can configure usage alerts and purchase Autopilot general-computing 12,000 vCPU yearly packages in batches to prolong the validity period of packages and avoid waste. For details about usage alerts, see Configuring Package Usage Alerts. You can also flexibly adjust the package specifications based on the vCPU usage. For example, if the vCPU usage increases sharply in the next year, you can purchase a 120,000 vCPU-hours CPU yearly package.
    • For memory, you are advised to purchase an Autopilot general-computing 120,000 GiB-hours memory yearly package and configure a usage alert by referring to Configuring Package Usage Alerts so that you adjust the quota based on the subsequent usage when the package is about to run out.