Skip to content

Commit

Permalink
Enable AWS NLB cross-zone load balancing
Browse files Browse the repository at this point in the history
  • Loading branch information
dghubble committed Mar 11, 2018
1 parent 9fb1e1a commit b57e2a8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Notable changes between versions.
* Switch Ingress elastic load balancer to a network load balancer ([#141](https://github.com/poseidon/typhoon/pull/141))
* AWS [NLBs](https://aws.amazon.com/blogs/aws/new-network-load-balancer-effortless-scaling-to-millions-of-requests-per-second/) can handle millions of RPS with high throughput and low latency.
* Require terraform-provider-aws 1.7.0 or higher
* Enable cross-zone NLB load balancing ([#159](https://github.com/poseidon/typhoon/pull/159))
* https://aws.amazon.com/about-aws/whats-new/2018/02/network-load-balancer-now-supports-cross-zone-load-balancing/
* Allow groups of workers to be defined and joined to a cluster (i.e. worker pools) ([#150](https://github.com/poseidon/typhoon/pull/150))
* Add kubelet `--volume-plugin-dir` flag to allow flexvolume plugins ([#142](https://github.com/poseidon/typhoon/pull/142))
* Fix controller and worker launch configs to ignore AMI changes ([#126](https://github.com/poseidon/typhoon/pull/126), [#158](https://github.com/poseidon/typhoon/pull/158))
Expand Down
2 changes: 2 additions & 0 deletions aws/container-linux/kubernetes/apiserver.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ resource "aws_lb" "apiserver" {
internal = false

subnets = ["${aws_subnet.public.*.id}"]

enable_cross_zone_load_balancing = true
}

# Forward HTTP traffic to controllers
Expand Down
2 changes: 1 addition & 1 deletion aws/container-linux/kubernetes/require.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ terraform {
}

provider "aws" {
version = "~> 1.7"
version = "~> 1.11"
}

provider "local" {
Expand Down
2 changes: 2 additions & 0 deletions aws/container-linux/kubernetes/workers/ingress.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ resource "aws_lb" "ingress" {
internal = false

subnets = ["${var.subnet_ids}"]

enable_cross_zone_load_balancing = true
}

# Forward HTTP traffic to workers
Expand Down

0 comments on commit b57e2a8

Please sign in to comment.