-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make the default stack behavior to use target type IP (#2961)
* fix: make synthetics use additional_hostnames * refactor skip ports for linkerd * commit from ci -- ran terraform-docs and pushed * synthetics * docs * follow redirects * follow redirects * commit from ci -- ran terraform-docs and pushed * skip ports * we don't actually want follow redirect * reset typical app * commit * commit * always * try out stickiness * typo * commit from ci -- ran terraform-docs and pushed * always use clusterip * add service mesh in typical app * enable service mesh * add sticky sessions nginx ingress * print hostname * fix session stickiness * variables * validate * commit from ci -- ran terraform-docs and pushed * default false * sticky on services * commit from ci -- ran terraform-docs and pushed * wrong level * commit from ci -- ran terraform-docs and pushed * commit from ci -- ran terraform-docs and pushed * commit from ci -- ran terraform-docs and pushed * main branch --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
42aef38
commit 79bca1b
Showing
15 changed files
with
209 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,33 @@ | ||
module "stack" { | ||
source = "[email protected]:chanzuckerberg/happy//terraform/modules/happy-stack-eks?ref=main" | ||
|
||
image_tag = var.image_tag | ||
image_tags = jsondecode(var.image_tags) | ||
app_name = var.app | ||
stack_name = var.stack_name | ||
deployment_stage = "rdev" | ||
create_dashboard = true | ||
|
||
stack_prefix = "/${var.stack_name}" | ||
k8s_namespace = var.k8s_namespace | ||
|
||
image_tag = var.image_tag | ||
image_tags = jsondecode(var.image_tags) | ||
app_name = var.app | ||
stack_name = var.stack_name | ||
deployment_stage = var.env | ||
enable_service_mesh = true | ||
create_dashboard = true | ||
stack_prefix = "/${var.stack_name}" | ||
k8s_namespace = var.k8s_namespace | ||
// this allow these services under the same domain | ||
// each service is reachable via their path configured below | ||
routing_method = "CONTEXT" | ||
|
||
services = { | ||
frontend = { | ||
sticky_sessions = { | ||
enabled = true | ||
} | ||
synthetics = true | ||
name = "frontend" | ||
desired_count = 1 | ||
// the maximum number of copies of this service it can autoscale to | ||
max_count = 50 | ||
// the signal used to trigger autoscaling (ie. 50% of CPU means scale up) | ||
scaling_cpu_threshold_percentage = 50 | ||
// the port the service is running on | ||
port = 3000 | ||
port = 3000 | ||
memory = "500Mi" | ||
memory_requests = "300Mi" | ||
cpu = "500m" | ||
|
@@ -48,15 +51,17 @@ module "stack" { | |
platform_architecture = "amd64" | ||
}, | ||
internal-api = { | ||
|
||
synthetics = true | ||
name = "internal-api" | ||
desired_count = 1 | ||
max_count = 50 | ||
scaling_cpu_threshold_percentage = 80 | ||
port = 3000 | ||
memory = "500Mi" | ||
memory_requests = "300Mi" | ||
cpu = "500m" | ||
cpu_requests = "500m" | ||
memory = "500Mi" | ||
memory_requests = "300Mi" | ||
cpu = "500m" | ||
cpu_requests = "500m" | ||
health_check_path = "/api/health" | ||
service_type = "INTERNAL" | ||
path = "/api/*" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.