{
"code": 200,
"status": "success",
"data": {
"default": {
"CPU": "10.25",
"RAM": "3.50",
"GPU": ""
},
"default,gpu": {
"CPU": "10.25",
"RAM": "3.50",
"GPU": "2.95"
},
"default,spot": {
"CPU": "0.6655",
"RAM": "0.892",
"GPU": ""
}
}
}
Public clouds have more complicated responses, but this would make it easier to see prices applied (and potentially customized). Even only showing On Demand pricing would be useful.
While
kubectl costcurrently shows costs for various assets, it doesn't show the source of pricing data./allNodePricingfrom https://github.com/opencost/opencost/blob/develop/pkg/costmodel/router.go#L1757 returns JSON for on-prem similar toPublic clouds have more complicated responses, but this would make it easier to see prices applied (and potentially customized). Even only showing On Demand pricing would be useful.