Pod labels not propagated to billing export with GKE cost allocation

I am trying to better monitor some application costs, and wanted to take advantage of the GKE cost allocation feature by labelling my workloads appropriately. This goes fine for our autopilot clusters, but we also have several standard clusters where the pod or workload level labels are not used. I am certain that allocation is enabled, the labels are set a properly, there are less than 50, they are not longer than 63 chars and that each pod has resource requests set.

Any ideas? Should this work with a standard cluster?

Hi — I’m Rodrigo, founder of Compare Cloud Costs, and this is a pattern I keep seeing: the cost breakdown is only as good as the labels that are in place before the work runs.

A few checks that usually separate a setup problem from a billing-export problem:

- Confirm cost allocation is turned on for that specific Standard cluster, not just for the project or for your Autopilot clusters. That difference alone explains a lot of Autopilot-works, Standard-doesn’t cases.

- Check whether the labels were on the workload before it ran. Labels added later generally do not rewrite earlier billing rows, so a test with a fresh workload is a cleaner check than looking back at old rows.

- In the export, look at how the labels are stored. They are usually nested under a labels column rather than as flat columns, so a query that looks for a flat column can come back empty even when the data is there.

Yes, this should work on a Standard cluster, but in practice it is easier to prove with one small, freshly labeled workload and one day of export data, then roll the same labeling out more widely once that test row shows up.