Skip to content

Billing and quotas ​

Requests are the least you pay for CPU and memory, not the whole bill

For every hour, your namespace pays for the higher of two figures: what its running pods declare under resources.requests, and what they actually use. CPU and memory are compared separately. A pod requesting 1 vCPU and using 5 % of it still costs a full vCPU, and a pod requesting 100m that runs at its 500m limit is billed for the 500m.

Why it works that way ​

A request is a reservation. The scheduler places your pod on a node and keeps exactly that capacity free there, whether you use it or not. No other tenant can have it. Reserved capacity is occupied capacity, which is why the request is the floor of what you pay. Use above the request takes capacity on top of the reservation, so it is billed as well.

Both figures are summed over the whole namespace for each hour. Use above the request in one pod therefore only adds to the bill when the namespace as a whole used more than it requested in that hour.

What counts on the request side is the request of a pod that is actually Running, measured over time rather than sampled. A pod bills from the moment it is Running until it stops, at one-minute resolution. So a Job that runs for five minutes is billed five minutes of its requests, not an hour, and a completed pod whose object is still around (retained CronJob history, for instance) is not billed at all.

In practice: over-generous requests are the most expensive mistake you can make in a manifest. It goes unnoticed because nothing breaks. The application runs, utilisation looks relaxed, and only the invoice fails to match the amount of work being done.

Requests also drive your quota, together with limits: a pod that does not fit is refused when it is created, with exceeded quota, because the sum of what the namespace declares is used up, not because the applications consume too much.

Storage ​

Storage is billed on provisioned PVC capacity, not on bytes written. An empty 100 GiB volume costs the same as a full one.

It is billed for the time the volume exists, in GiB-hours at one-minute resolution. A volume held for ten days of a month costs about a third of the monthly rate, and deleting one stops its charge from that moment. The hourly rate is the monthly rate divided by 730 hours, so a volume held all month costs slightly more in a 31-day month and less in February.

On block storage (hcloud-volumes) there is also a minimum of 10 GiB per volume: a smaller PVC provisions normally but is billed at 10 GiB. Shared storage (nfs-rwx) has no such floor and is billed at the requested size. The details and the storage classes are under Storage.

Egress ​

Egress is billed on traffic actually transferred, so this is the one place where you really only pay for what flows.

Setting requests properly ​

Omitting requests does not make a pod free

A container that declares no requests is not rejected. Your namespace fills in a default instead, currently 50m CPU and 64Mi of memory, with limits of 200m and 256Mi. You are billed for that default like any other request, and the limits apply whether or not they suit your application. "No requests" therefore means "someone else chose your requests", not "no charge".

  • Set the request to what the application needs in normal operation. Not to the worst-case peak it could theoretically reach.
  • Set the limit above it. The gap between request and limit is your headroom for spikes. You pay for it only in the hours your namespace actually uses more than it requested, not continuously.
  • Do not guess, measure. The portal already did the measuring: the Workloads view compares each workload's request against its actual use over the last seven days and suggests a request that fits, with the saving next to it. See What the portal shows you. If you would rather have it in-cluster, the VPA in recommendation mode (updateMode: "Off", see Autoscaling) collects the same kind of suggestion without changing anything.

Too small is not free either: a CPU request below what the workload needs means less CPU time under contention, because CPU is shared between pods in proportion to their requests. A memory request that is too low makes your pod the first candidate when a node has to reclaim memory. Nor does a low request lower the bill of a workload that regularly uses more: the use is billed instead. The goal is not the smallest number, it is the honest one.

Paying nothing while nothing runs ​

Because both figures come from running pods, a workload with no pods running costs nothing in CPU and memory. An HTTP service can be set up to drop to zero replicas when nothing calls it and wake on the next request, which is worth doing for anything that is idle most of the day. See Scale-to-Zero.

It lowers the compute part of your bill, not the whole bill. Volumes stay allocated while the pods sleep, so storage and the base fee continue as normal.

What the portal shows you ​

The portal shows what is running and what it costs, without kubectl: quota against your limits, per-workload cost, month-to-date and projected spend, and the floor figure showing what the namespace costs if everything sleeps.

On a fixed-price tier, Plan Management in the Kubernetes overview also shows the Billing period row with the period, the date of the next renewal and a scheduled change, see Changing the period.

Two things there are worth setting up before you need them: the right-sizing suggestions, which are the fastest way to find an over-provisioned workload, and a spending cap on the namespace. See What the portal shows you.

Quotas and prices ​

The quotas of the free namespace are listed under Free tier.

For the paid tiers, the prices and quotas that apply are the ones on the Kubernetes product page and in the pricing calculator. Your actual usage is in the portal under Kubernetes.

Switching plans ​

Under Plan Management in the Kubernetes overview you switch between the fixed-price tiers. Pay-as-you-go appears there only when your current usage projects it to be cheaper than your tier; otherwise the portal offers no switch to it. Before you confirm, the dialog shows what the switch costs or refunds now.

  • Paid monthly: the new tier applies at once. For the rest of the month we charge the new tier by the day, and we refund the already paid remaining time of the old tier by the day to your original payment method; the dialog shows both amounts before you confirm. From the next first of the month the new tier's full monthly price applies, even if your tier so far renewed on another day of the month.
  • Paid quarterly, half-yearly or yearly, switching to another fixed-price tier: your paid period stays, and the new price applies from the next period. For a larger tier we charge the difference for the rest of the paid period to your saved payment method right away, and the quotas grow once the payment has arrived; with a SEPA direct debit that can take a few days. For a smaller tier the quotas shrink immediately, and we refund the difference for the rest of the paid period.
  • Switching to pay-as-you-go: your current tier ends with the switch, and we refund the paid time after it pro rata by the day. The pay-as-you-go base fee starts the same day, pro rata for the rest of that month and then monthly on the 1st, and usage is billed monthly. On a quarterly, half-yearly or yearly tier the dialog's summary of what happens now names only the refund, not the base fee that starts.

A refund goes to the payment method originally used within 14 days after the switch. If your bank can still return a SEPA direct debit (eight weeks from the debit date), we refund the amount from it within 14 days after that period expires.

While the namespace is cancelled, a payment is open, another switch is still in progress or a change of the billing period is scheduled (see Changing the period), no switch is possible. A SEPA direct debit still being collected does not hold up a switch when you pay monthly; the refund from it follows as above, once the period in which your bank can return it has expired. If your workloads use more than the new tier allows, the dialog names the resource to reduce first.

A switch to a larger tier and the switch from the free to a paid tier have their own 14-day right of withdrawal; the dialog links the withdrawal policy. For the time until the withdrawal you pay the new tier pro rata, on pay-as-you-go the pro rata base fee and your usage; what you have already paid since the switch is credited and the rest refunded.

Changing the period ​

On a fixed-price tier you also change the billing period under Plan Management: monthly, quarterly, half-yearly or yearly. Change period in the Billing period row opens the Change billing period dialog. Pay-as-you-go and the free namespace have only one period.

The change takes effect at the end of the current period. From that day the new period applies: its price is charged up front on that day, and it renews on that day each time. So a monthly tier that came from a longer period renews on that day of the month, not on the first.

Until then Withdraw change takes the change back. If you cancel the namespace before then, the change is dropped: it runs on its current period until the end of the contract, and paid time after that is refunded as with any cancellation.

A change is not possible while the namespace is cancelled or a payment is overdue, or while a tier switch has not been completed or can still be withdrawn. The other way round, you cannot switch tiers, including to pay-as-you-go, while a change is scheduled. If you want to switch first, withdraw the change.

What's next ​