Skip to content
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

fix: Rename proxy to proxy blue #50

Merged
merged 1 commit into from
Jun 11, 2024
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
5 changes: 3 additions & 2 deletions bootstrap/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module "node_v1_feature" {
}

// blue (once we have a green, we can update its name to proxy-blue)
module "node_v1_proxy" {
module "node_v1_proxy_blue" {
depends_on = [kubernetes_namespace.namespace]
source = "./proxy"
namespace = var.namespace
Expand All @@ -29,7 +29,8 @@ module "node_v1_proxy" {
resources = var.proxy_resources
instances_namespace = var.proxy_blue_instances_namespace
healthcheck_port = var.proxy_blue_healthcheck_port
name = "proxy"
environment = "blue"
name = "proxy-blue"
}

module "node_v1_proxy_green" {
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/proxy/config.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ locals {
"name" = "3",
"max_connections" = 75
"rates" = [
{
{
"interval" = "1m",
"limit" = 1024 * 1024 * 60 * 2
}
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/proxy/deployment.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resource "kubernetes_deployment_v1" "node_proxy" {
}
template {
metadata {
name = local.name
name = local.name
labels = local.proxy_labels
}
spec {
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/proxy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ variable "dns_zone" {

variable "healthcheck_port" {
type = number
}
}
20 changes: 10 additions & 10 deletions bootstrap/relay/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resource "kubernetes_service_v1" "node-relay-n2n" {
}

spec {
type = "LoadBalancer"
type = "LoadBalancer"
load_balancer_class = "service.k8s.aws/nlb"

selector = {
Expand All @@ -23,23 +23,23 @@ resource "kubernetes_service_v1" "node-relay-n2n" {
}

port {
name = "mainnet"
protocol = "TCP"
port = 3000
name = "mainnet"
protocol = "TCP"
port = 3000
target_port = "n2n-mainnet"
}

port {
name = "preprod"
protocol = "TCP"
port = 3001
name = "preprod"
protocol = "TCP"
port = 3001
target_port = "n2n-preprod"
}

port {
name = "preview"
protocol = "TCP"
port = 3002
name = "preview"
protocol = "TCP"
port = 3002
target_port = "n2n-preview"
}

Expand Down
2 changes: 1 addition & 1 deletion bootstrap/service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ variable "release" {

variable "active_salt" {
description = "the salt to use for the active network"
default = ""
default = ""
}

locals {
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ variable "proxy_green_replicas" {
variable "proxy_green_healthcheck_port" {
type = number
description = "The port the loadbalancer assigned to the HTTP endpoint of the service. Usually known after the service is created. The default is the target-port."
default = null
default = null
}

variable "proxy_green_instances_namespace" {
Expand Down
Loading