Skip to content

Disable nat gateway #808

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ aws resource cost per hour
1 t3.medium instance for the operator $0.0416
1 20gb ebs volume for the operator $0.003
2 elastic load balancers $0.025 each
1 nat gateway $0.045

your cluster will cost $0.24 - $2.88 per hour based on the cluster size and spot instance availability
your cluster will cost $0.19 - $2.84 per hour based on the cluster size and spot instance availability

○ spinning up your cluster ...

Expand Down
4 changes: 1 addition & 3 deletions cli/cmd/lib_cluster_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,9 @@ func confirmInstallClusterConfig(clusterConfig *clusterconfig.Config, awsCreds A
operatorInstancePrice := aws.InstanceMetadatas[*clusterConfig.Region]["t3.medium"].Price
operatorEBSPrice := aws.EBSMetadatas[*clusterConfig.Region].Price * 20 / 30 / 24
elbPrice := aws.ELBMetadatas[*clusterConfig.Region].Price
natPrice := aws.NATMetadatas[*clusterConfig.Region].Price
apiInstancePrice := aws.InstanceMetadatas[*clusterConfig.Region][*clusterConfig.InstanceType].Price
apiEBSPrice := aws.EBSMetadatas[*clusterConfig.Region].Price * float64(clusterConfig.InstanceVolumeSize) / 30 / 24
fixedPrice := eksPrice + operatorInstancePrice + operatorEBSPrice + 2*elbPrice + natPrice
fixedPrice := eksPrice + operatorInstancePrice + operatorEBSPrice + 2*elbPrice
totalMinPrice := fixedPrice + float64(*clusterConfig.MinInstances)*(apiInstancePrice+apiEBSPrice)
totalMaxPrice := fixedPrice + float64(*clusterConfig.MaxInstances)*(apiInstancePrice+apiEBSPrice)

Expand Down Expand Up @@ -336,7 +335,6 @@ func confirmInstallClusterConfig(clusterConfig *clusterconfig.Config, awsCreds A
rows = append(rows, []interface{}{"1 t3.medium instance for the operator", s.DollarsMaxPrecision(operatorInstancePrice)})
rows = append(rows, []interface{}{"1 20gb ebs volume for the operator", s.DollarsAndTenthsOfCents(operatorEBSPrice)})
rows = append(rows, []interface{}{"2 elastic load balancers", s.DollarsMaxPrecision(elbPrice) + " each"})
rows = append(rows, []interface{}{"1 nat gateway", s.DollarsMaxPrecision(natPrice)})

items := table.Table{
Headers: headers,
Expand Down
3 changes: 1 addition & 2 deletions docs/cluster-management/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ aws resource cost per hour
1 t3.medium instance for the operator $0.0416
1 20gb ebs volume for the operator $0.003
2 elastic load balancers $0.025 each
1 nat gateway $0.045

your cluster will cost $0.24 - $2.88 per hour based on the cluster size and spot instance availability
your cluster will cost $0.19 - $2.84 per hour based on the cluster size and spot instance availability

○ spinning up your cluster ...

Expand Down
4 changes: 4 additions & 0 deletions manager/eks_cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ availabilityZones: $CORTEX_AVAILABILITY_ZONES
cloudWatch:
clusterLogging:
enableTypes: ["*"]

vpc:
nat:
gateway: Disable