Skip to content

Commit e7a162a

Browse files
committed
Use gp3 for cortex's internal volumes
1 parent 2eec08a commit e7a162a

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

cli/cmd/cluster.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,8 @@ func getInfoOperatorResponse(operatorEndpoint string) (*schema.InfoResponse, err
786786
func printInfoPricing(infoResponse *schema.InfoResponse, clusterConfig clusterconfig.Config) {
787787
eksPrice := aws.EKSPrices[clusterConfig.Region]
788788
operatorInstancePrice := aws.InstanceMetadatas[clusterConfig.Region]["t3.medium"].Price
789-
operatorEBSPrice := aws.EBSMetadatas[clusterConfig.Region]["gp2"].PriceGB * 20 / 30 / 24
790-
metricsEBSPrice := aws.EBSMetadatas[clusterConfig.Region]["gp2"].PriceGB * 40 / 30 / 24
789+
operatorEBSPrice := aws.EBSMetadatas[clusterConfig.Region]["gp3"].PriceGB * 20 / 30 / 24
790+
metricsEBSPrice := aws.EBSMetadatas[clusterConfig.Region]["gp3"].PriceGB * 40 / 30 / 24
791791
nlbPrice := aws.NLBMetadatas[clusterConfig.Region].Price
792792
natUnitPrice := aws.NATMetadatas[clusterConfig.Region].Price
793793

cli/cmd/lib_cluster_config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ func getInstallClusterConfig(awsClient *aws.Client, clusterConfigFile string, di
149149
func confirmInstallClusterConfig(clusterConfig *clusterconfig.Config, awsClient *aws.Client, disallowPrompt bool) {
150150
eksPrice := aws.EKSPrices[clusterConfig.Region]
151151
operatorInstancePrice := aws.InstanceMetadatas[clusterConfig.Region]["t3.medium"].Price
152-
operatorEBSPrice := aws.EBSMetadatas[clusterConfig.Region]["gp2"].PriceGB * 20 / 30 / 24
153-
metricsEBSPrice := aws.EBSMetadatas[clusterConfig.Region]["gp2"].PriceGB * 40 / 30 / 24
152+
operatorEBSPrice := aws.EBSMetadatas[clusterConfig.Region]["gp3"].PriceGB * 20 / 30 / 24
153+
metricsEBSPrice := aws.EBSMetadatas[clusterConfig.Region]["gp3"].PriceGB * 40 / 30 / 24
154154
nlbPrice := aws.NLBMetadatas[clusterConfig.Region].Price
155155
natUnitPrice := aws.NATMetadatas[clusterConfig.Region].Price
156156

manager/manifests/prometheus-monitoring.yaml.j2

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ metadata:
1919
volumeBindingMode: WaitForFirstConsumer
2020
provisioner: kubernetes.io/aws-ebs
2121
parameters:
22-
type: gp2
22+
type: gp3
2323

2424
---
2525

pkg/operator/operator/cron.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ func getEBSPriceForNodeGroupInstance(ngs []*clusterconfig.NodeGroup, ngName stri
196196
func clusterFixedPrice() float64 {
197197
eksPrice := aws.EKSPrices[config.CoreConfig.Region]
198198
operatorInstancePrice := aws.InstanceMetadatas[config.CoreConfig.Region]["t3.medium"].Price
199-
operatorEBSPrice := aws.EBSMetadatas[config.CoreConfig.Region]["gp2"].PriceGB * 20 / 30 / 24
200-
metricsEBSPrice := aws.EBSMetadatas[config.CoreConfig.Region]["gp2"].PriceGB * 40 / 30 / 24
199+
operatorEBSPrice := aws.EBSMetadatas[config.CoreConfig.Region]["gp3"].PriceGB * 20 / 30 / 24
200+
metricsEBSPrice := aws.EBSMetadatas[config.CoreConfig.Region]["gp3"].PriceGB * 40 / 30 / 24
201201
nlbPrice := aws.NLBMetadatas[config.CoreConfig.Region].Price
202202
natUnitPrice := aws.NATMetadatas[config.CoreConfig.Region].Price
203203
var natTotalPrice float64

0 commit comments

Comments
 (0)