Skip to content

Enhancement: Implement retrieval and calculation of prices info using GCP CloudBilling API #33

Open
@dm3ch

Description

@dm3ch

Empediment from: #31

GCP doesn't have an API that tells you how much the VM type costs.
But they have an https://cloud.google.com/billing/docs/reference/rest/v1/services.skus which is really hard to use, but can provide information how does VM parts costs (CPU / RAM / etc).

So to not to bring too complex pricing logic at the beginning we leveraged already calculated pricing data provided by https://github.com/Cyclenerd/google-cloud-pricing-cost-calculator project.

It seems it would make sense to try to reimplement runtime price retrieval to the calculation of instance prices on Karpenter provider side (this project).
Also rewriting initial prices to use the own calculation logic, if possible.

P.S. Don't forget about GPU, sustainable usage discount, disks in calculation, custom machine types

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions