Skip to content

Commit 2722979

Browse files
authored
fix: blue green proxy config (#64)
1 parent 071af3f commit 2722979

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: bootstrap/proxy/config.tf

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
locals {
2+
config_map_name = var.environment != null ? "${var.environment}-proxy-config" : "proxy-config"
3+
24
tiers = [
35
{
46
"name" = "0",
@@ -46,7 +48,7 @@ locals {
4648
resource "kubernetes_config_map" "proxy" {
4749
metadata {
4850
namespace = var.namespace
49-
name = "proxy-config"
51+
name = local.config_map_name
5052
}
5153

5254
data = {

Diff for: bootstrap/proxy/main.tf

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ variable "resources" {
4646
})
4747
default = {
4848
limits : {
49-
cpu : "50m",
49+
cpu : "2",
5050
memory : "250Mi"
5151
}
5252
requests : {
53-
cpu : "50m",
53+
cpu : "100m",
5454
memory : "250Mi"
5555
}
5656
}

0 commit comments

Comments
 (0)