K8sRates: SKURateCard

Prev Next

This model describes a SKU rate card, which calculates costs by applying a percentage discount or a fixed rate to specific cloud provider SKUs, such as individual virtual machine families, storage types or network transfer charges. A fallback discount or rate can be specified for SKUs that are not explicitly listed.

Example:

{
    "id": "5e0b7c3a-9d41-4f2e-8a6b-c3d17f9e2b40",
    "name": "AWS SKU Rate Card",
    "description": "A more detailed rate card, based on individual SKUs, for AWS.",
    "type": "SKURateCard",
    "provider": "AWS",
    "kubernetes": {
        "enabled": true,
        "skus": [],
        "fallbackDiscountType": "Percentage",
        "fallbackPercentage": 0.15,
        "fallbackRate": 0.0,
        "fallbackUnit": "1 Hour",
        "fallbackComment": ""
    },
    "loadBalancer": {
        "enabled": true,
        "skus": [],
        "fallbackDiscountType": "Percentage",
        "fallbackPercentage": 0.15,
        "fallbackRate": 0.0,
        "fallbackUnit": "1 Hour",
        "fallbackComment": ""
    },
    "nodes": {
        "enabled": true,
        "skus": [
            {
                "names": "m5*, m6i*",
                "description": "General purpose instances",
                "discountType": "Percentage",
                "percentage": 0.4,
                "rate": 0.0,
                "unit": "1 Hour",
                "regions": "",
                "currencyCode": "USD",
                "properties": {},
                "comment": "Compute savings plan",
                "startDate": "2026-01-01T00:00:00Z",
                "endDate": "2026-12-31T23:59:59Z"
            }
        ],
        "fallbackDiscountType": "Percentage",
        "fallbackPercentage": 0.3,
        "fallbackRate": 0.0,
        "fallbackUnit": "1 Hour",
        "fallbackComment": "All other instance types use the standard discount."
    },
    "storage": {
        "enabled": true,
        "skus": [
            {
                "names": "gp*",
                "description": "All General Purpose SSD (EBS) storage",
                "discountType": "Percentage",
                "percentage": 0.2,
                "rate": 0.0,
                "unit": "1 GB",
                "regions": "",
                "currencyCode": "USD",
                "properties": {},
                "comment": "",
                "startDate": null,
                "endDate": null
            }
        ],
        "fallbackDiscountType": "Percentage",
        "fallbackPercentage": 0.15,
        "fallbackRate": 0.0,
        "fallbackUnit": "1 GB",
        "fallbackComment": "All other storage uses the standard discount."
    },
    "network": {
        "enabled": true,
        "skus": [
            {
                "names": "Internet Outbound",
                "description": "Internet egress for North America and Europe",
                "discountType": "FixedRate",
                "percentage": 0.0,
                "rate": 0.05,
                "unit": "1 GB",
                "regions": "us-east-1,us-east-2,us-west-1,us-west-2,ca-central-1,eu-west-1,eu-west-2,eu-central-1",
                "currencyCode": "USD",
                "properties": {},
                "comment": "",
                "startDate": null,
                "endDate": null
            },
            {
                "names": "Internet Outbound",
                "description": "Internet egress for Asia Pacific (Tokyo)",
                "discountType": "FixedRate",
                "percentage": 0.0,
                "rate": 0.08,
                "unit": "1 GB",
                "regions": "ap-northeast-1",
                "currencyCode": "USD",
                "properties": {},
                "comment": "",
                "startDate": null,
                "endDate": null
            },
            {
                "names": "IntraRegion",
                "description": "Data transfer between availability zones",
                "discountType": "FixedRate",
                "percentage": 0.0,
                "rate": 0.005,
                "unit": "1 GB",
                "regions": "us-east-1,us-east-2,us-west-1,us-west-2",
                "currencyCode": "USD",
                "properties": {},
                "comment": "",
                "startDate": null,
                "endDate": null
            }
        ],
        "fallbackDiscountType": "Percentage",
        "fallbackPercentage": 0.1,
        "fallbackRate": 0.0,
        "fallbackUnit": "1 GB",
        "fallbackComment": ""
    }
}

where:

  • id: Represents the ID of the rate card.
  • name: Represents the name of the rate card.
  • description: Represents the description of the rate card.
  • type: Represents the type of the rate card. The value is always SKURateCard.
  • provider: Represents the cloud provider associated with the rate card. Supported values are Azure, AWS, GCP, and Custom.
  • kubernetes, loadBalancer, nodes, storage, network: Represent the SKUs for the managed Kubernetes service, load balancer services, nodes, storage, and network bandwidth respectively. Each contains the following attributes:
    • enabled: Indicates whether the SKUs in this section are applied when calculating costs.
    • fallbackDiscountType: Represents the type of discount applied to SKUs that do not match any of the listed SKUs. Supported values are:
      • None: No discount is applied.
      • Percentage: The fallbackPercentage is applied as a discount to the cloud provider's pricing.
      • FixedRate: The fallbackRate is used in place of the cloud provider's pricing.
    • fallbackPercentage: Represents the fallback discount, expressed as a value between 0 and 1.0. Only applicable if fallbackDiscountType is Percentage.
    • fallbackRate: Represents the fallback rate. Only applicable if fallbackDiscountType is FixedRate.
    • fallbackUnit: Represents the unit of measure for the fallback rate.
    • fallbackComment: Represents any comment associated with the fallback discount or rate.
    • skus: Represents the list of SKUs. Each SKU contains the following attributes:
      • names: Represents a comma-separated list of the cloud provider SKU names that the entry applies to. Names are not case-sensitive, and can include * as a wildcard (for example, m5* matches all m5 instance types).
      • description: Represents the description of the SKU entry.
      • discountType: Represents the type of discount applied to the SKU. Supported values are:
        • None: No discount is applied.
        • Percentage: The percentage is applied as a discount to the cloud provider's pricing.
        • FixedRate: The rate is used in place of the cloud provider's pricing.
      • percentage: Represents the discount, expressed as a value between 0 and 1.0. Only applicable if discountType is Percentage.
      • rate: Represents the rate. Only applicable if discountType is FixedRate.
      • unit: Represents the unit of measure for the rate.
      • regions: Represents a comma-separated list of regions that the SKU entry applies to. An empty value indicates that the entry applies to all regions.
      • currencyCode: Represents the currency code for the rate. Defaults to USD.
      • properties: Represents any additional properties associated with the SKU entry.
      • comment: Represents any comment associated with the SKU entry.
      • startDate: Represents the date from which the SKU entry applies. This value can be null if the entry has no start date.
      • endDate: Represents the date after which the SKU entry no longer applies. This value can be null if the entry has no end date.