Skip to content

Commit

Permalink
Set "pd-balanced" as DefaultBootDiskType
Browse files Browse the repository at this point in the history
  • Loading branch information
azylinski committed Mar 12, 2024
1 parent c7fb744 commit 7ee93b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions cluster-autoscaler/cloudprovider/gce/gce_price_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,9 @@ var (
"pd-balanced": 0.100 / hoursInMonth,
"pd-ssd": 0.170 / hoursInMonth,
}
// DefaultBootDiskType is pd-standard disk type.
DefaultBootDiskType = "pd-standard"
// DefaultBootDiskType is pd-balanced disk type.
// ref: https://cloud.google.com/kubernetes-engine/docs/how-to/custom-boot-disks#specify
DefaultBootDiskType = "pd-balanced"
)

// GcePriceInfo is the GCE specific implementation of the PricingInfo.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func TestGetNodePrice(t *testing.T) {
"custom node price scales linearly": {
cheaperNode: testNode(t, "small_custom", "custom-1", 1000, 3.75*units.GiB, "", 0, false, false),
expensiveNode: testNode(t, "large_custom", "custom-8", 8000, 30*units.GiB, "", 0, false, false),
priceComparisonCoefficient: 0.14,
priceComparisonCoefficient: 0.16,
},
"custom node price scales linearly 2": {
cheaperNode: testNode(t, "large_custom", "custom-8", 8000, 30*units.GiB, "", 0, false, false),
Expand Down

0 comments on commit 7ee93b4

Please sign in to comment.