This model describes a GCP price sheet, which lists the components of a Google Kubernetes Engine (GKE) cluster along with the price of each component, resolved against a rate card. A price sheet is submitted with only the attributes that identify each component, and is returned with the prices and discounts filled in. See How To: Get Component Pricing for a Cluster for more details.
Standard GKE clusters are billed per node, and use the nodes attribute. GKE Autopilot clusters are billed per requested Pod resource, and use the autoPilot attribute instead.
To find the SKU names to use for each component, see How To: Specify SKU Names for GCP SKU Rate Cards.
Example:
{
"kubernetes": {
"sku": "Standard",
"unitPrice": 0.1,
"unit": "h",
"discount": 0.1,
"region": "us-east1",
"currencyCode": "USD",
"properties": {}
},
"loadBalancer": {
"sku": "Global External",
"serviceUnitPrice": 0.025,
"serviceUnit": "h",
"dataUnitPrice": 0.008,
"dataUnit": "GiBy",
"ruleUnitPrice": 0.01,
"ruleUnit": "h",
"discount": 0.1,
"region": "us-east1",
"currencyCode": "USD",
"properties": {}
},
"nodes": [
{
"machineType": "n2-standard-4",
"os": "linux",
"billingModel": "OnDemand",
"nodeUnitPrice": 0.194236,
"nodeUnit": "h",
"cpuUnitPrice": 0.031611,
"cpuUnit": "h",
"memoryUnitPrice": 0.004237,
"memoryUnit": "GiBy.h",
"gpuUnitPrice": 0.0,
"gpuUnit": "h",
"licenseSurcharge": 0.8,
"licenseUnit": "Hrs",
"discount": 0.22,
"region": "us-east1",
"currencyCode": "USD",
"properties": {}
}
],
"storage": [
{
"sku": "pd-balanced",
"type": "Zonal",
"unitPrice": 0.00013699,
"Unit": "GiBy.h",
"discount": 0.15,
"region": "us-east1",
"currencyCode": "USD",
"properties": {}
}
],
"network": [
{
"sku": "Internet Outbound",
"unitPrice": 0.12,
"unit": "GiBy",
"discount": 0.05,
"region": "us-east1",
"currencyCode": "USD",
"properties": {}
}
],
"autoPilot": [],
"overhead": {
"region": "",
"pricePerUnit": 0.0,
"unit": "h",
"discount": 0.0,
"currencyCode": "USD",
"properties": {}
},
"rateCardId": "2f6c1d8e-4b7a-4c39-9e51-7a0d3b2c8f14",
"rateCardName": "Enterprise Agreement",
"rateCardType": "DiscountRateCard"
}
An autoPilot item for a GKE Autopilot cluster:
{
"region": "us-east1",
"computeClass": "general-purpose",
"architecture": "amd64",
"billingModel": "OnDemand",
"cpuUnitPrice": 0.0445,
"cpuUnit": "h",
"memoryUnitPrice": 0.0049225,
"memoryUnit": "GiBy.h",
"gpuUnitPrice": 0.0,
"gpuUnit": "h",
"gpuModel": "",
"ephemeralStorageUnitPrice": 0.0000548,
"ephemeralStorageUnit": "GiBy.h",
"ephemeralStorageSSDUnitPrice": 0.0,
"ephemeralStorageSSDUnit": "GiBy.h",
"discount": 0.22,
"currencyCode": "USD",
"properties": {}
}
Note: The prices in the examples above are for illustration only.
where:
- kubernetes: Represents the price of the managed Kubernetes service.
sku: Represents the GKE cluster management SKU. Defaults toStandard.unitPrice: Represents the unit price, before any discount is applied.unit: Represents the unit of the price. Defaults toh(hour).discount: Represents the discount from the rate card, expressed as a value between 0 and 1.0.region: Represents the region of the Kubernetes service.currencyCode: Represents the currency code of the price. Defaults toUSD.properties: Represents any additional properties associated with the Kubernetes service.
- loadBalancer: Represents the price of the load balancer service.
sku: Represents the SKU of the load balancer. Defaults toGlobal External.serviceUnitPrice: Represents the unit price for each load balancer, before any discount is applied.serviceUnit: Represents the unit of the service price. Defaults toh(hour).dataUnitPrice: Represents the unit price for the data processed by the load balancer, before any discount is applied.dataUnit: Represents the unit of the data price. Defaults toGiBy(GiB).ruleUnitPrice: Represents the unit price for each forwarding rule, before any discount is applied.ruleUnit: Represents the unit of the rule price. Defaults toh(hour).discount: Represents the discount from the rate card, expressed as a value between 0 and 1.0.region: Represents the region of the load balancer.currencyCode: Represents the currency code of the prices. Defaults toUSD.properties: Represents any additional properties associated with the load balancer.
- nodes: Represents the list of node prices for a Standard GKE cluster. Each node contains the following attributes:
machineType: Represents the Compute Engine machine type of the node (for example,n2-standard-4).os: Represents the operating system of the node. Defaults tolinux.billingModel: Represents the billing model of the node. Supported values areOnDemand,Spot,Commit1YrandCommit3Yr. Defaults to the billing model of the rate card.nodeUnitPrice: Represents the unit price of the node, before any discount is applied. This value is 0 if the price of the node cannot be found.nodeUnit: Represents the unit of the node price. Defaults toh(hour).cpuUnitPrice: Represents the portion of the node price attributable to each CPU.cpuUnit: Represents the unit of the CPU price. Defaults toh(hour).memoryUnitPrice: Represents the portion of the node price attributable to each GiB of memory.memoryUnit: Represents the unit of the memory price. Defaults toGiBy.h(GiB per hour).gpuUnitPrice: Represents the portion of the node price attributable to each GPU.gpuUnit: Represents the unit of the GPU price. Defaults toh(hour).licenseSurcharge: Represents the surcharge applied to offset the licensing costs associated with Windows nodes.licenseUnit: Represents the unit of the license surcharge. Defaults toHrs.discount: Represents the discount from the rate card, expressed as a value between 0 and 1.0.region: Represents the region of the node.currencyCode: Represents the currency code of the prices. Defaults toUSD.properties: Represents any additional properties associated with the node.
- storage: Represents the list of storage prices. Each storage item contains the following attributes:
sku: Represents the persistent disk SKU (for example,pd-balanced).type: Represents the persistent disk type. Supported values areZonalandRegional. Defaults toZonal.unitPrice: Represents the unit price, before any discount is applied.Unit: Represents the unit of the price. Defaults toGiBy.h(GiB per hour).discount: Represents the discount from the rate card, expressed as a value between 0 and 1.0.region: Represents the region of the storage.currencyCode: Represents the currency code of the price. Defaults toUSD.properties: Represents any additional properties associated with the storage.
- network: Represents the list of network transfer prices. Each network item contains the following attributes:
sku: Represents the network transfer type (for example,Internet Outbound).unitPrice: Represents the unit price, before any discount is applied.unit: Represents the unit of the price. Defaults toGiBy(GiB).discount: Represents the discount from the rate card, expressed as a value between 0 and 1.0.region: Represents the region of the network transfer.currencyCode: Represents the currency code of the price. Defaults toUSD.properties: Represents any additional properties associated with the network transfer. For transfers between regions, theSourceandDestinationkeys specify the source and destination regions.
- autoPilot: Represents the list of per-resource prices for a GKE Autopilot cluster. This list is only populated for Autopilot clusters. Each item contains the following attributes:
region: Represents the region of the Autopilot cluster.computeClass: Represents the Autopilot compute class. Supported values includegeneral-purpose,balancedandscale-out. Defaults togeneral-purpose.architecture: Represents the CPU architecture. Supported values areamd64andarm64. Defaults toamd64.billingModel: Represents the billing model. Supported values areOnDemand,Spot,Commit1YrandCommit3Yr. Defaults to the billing model of the rate card.cpuUnitPrice: Represents the unit price of each requested CPU, before any discount is applied.cpuUnit: Represents the unit of the CPU price. Defaults toh(hour).memoryUnitPrice: Represents the unit price of each GiB of requested memory, before any discount is applied.memoryUnit: Represents the unit of the memory price. Defaults toGiBy.h(GiB per hour).gpuUnitPrice,gpuUnit,gpuModel: Legacy attributes that are no longer populated. GPUs in Autopilot clusters are billed through the node-basedacceleratorcompute class.ephemeralStorageUnitPrice: Represents the unit price of each GiB of requested ephemeral storage, before any discount is applied.ephemeralStorageUnit: Represents the unit of the ephemeral storage price. Defaults toGiBy.h(GiB per hour).ephemeralStorageSSDUnitPrice: Represents the unit price of each GiB of requested Local SSD-backed ephemeral storage, before any discount is applied.ephemeralStorageSSDUnit: Represents the unit of the Local SSD-backed ephemeral storage price. Defaults toGiBy.h(GiB per hour).discount: Represents the discount from the rate card, expressed as a value between 0 and 1.0. Discount rate cards apply the node discount to Autopilot prices.currencyCode: Represents the currency code of the prices. Defaults toUSD.properties: Represents any additional properties associated with the Autopilot compute class.
- overhead: Represents the shared overhead associated with the cluster, which is only applicable to custom rate cards.
region: Represents the region of the overhead.pricePerUnit: Represents the overhead price per unit.unit: Represents the unit of the price. Defaults toh(hour).discount: Represents the discount from the rate card, expressed as a value between 0 and 1.0.currencyCode: Represents the currency code of the price. Defaults toUSD.properties: Represents any additional properties associated with the overhead.
rateCardId: Represents the ID of the rate card applied to the price sheet. If not specified, or if the rate card cannot be found, the built-inOn-Demandrate card is applied.rateCardName: Represents the name of the rate card applied to the price sheet.rateCardType: Represents the type of the rate card applied to the price sheet.
Note: The Unit attribute of the storage items begins with an uppercase letter.