mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
scale down bot since rusty-bot uses less resources
This commit is contained in:
parent
9e057e8692
commit
6df856ac49
3 changed files with 7 additions and 6 deletions
|
@ -62,9 +62,10 @@ locals {
|
||||||
resource "google_compute_instance" "bot" {
|
resource "google_compute_instance" "bot" {
|
||||||
count = var.deploy_bot == true ? 1 : 0
|
count = var.deploy_bot == true ? 1 : 0
|
||||||
|
|
||||||
name = local.vmName
|
name = local.vmName
|
||||||
machine_type = var.bot_instance_size
|
machine_type = var.bot_instance_size
|
||||||
zone = data.google_compute_zones.gcp_zones.names[random_integer.zone_index.result]
|
zone = data.google_compute_zones.gcp_zones.names[random_integer.zone_index.result]
|
||||||
|
allow_stopping_for_update = true
|
||||||
|
|
||||||
boot_disk {
|
boot_disk {
|
||||||
initialize_params {
|
initialize_params {
|
||||||
|
@ -88,4 +89,4 @@ resource "google_compute_instance" "bot" {
|
||||||
labels = {
|
labels = {
|
||||||
container-vm = module.gce_container.vm_container_label
|
container-vm = module.gce_container.vm_container_label
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
environment_tag = "prod"
|
environment_tag = "prod"
|
||||||
deploy_bot = true
|
deploy_bot = true
|
||||||
bot_instance_size = "e2-small"
|
bot_instance_size = "e2-micro"
|
||||||
ui_public_uri = "https://roleypoly.com"
|
ui_public_uri = "https://roleypoly.com"
|
||||||
api_public_uri = "https://api-prod.roleypoly.com"
|
api_public_uri = "https://api-prod.roleypoly.com"
|
||||||
allowed_callback_hosts = "https://roleypoly.com,https://next.roleypoly.com"
|
allowed_callback_hosts = "https://roleypoly.com,https://next.roleypoly.com"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
environment_tag = "stage"
|
environment_tag = "stage"
|
||||||
deploy_bot = true
|
deploy_bot = true
|
||||||
bot_instance_size = "f1-micro"
|
bot_instance_size = "e2-micro"
|
||||||
ui_public_uri = "https://stage.roleypoly.com"
|
ui_public_uri = "https://stage.roleypoly.com"
|
||||||
api_public_uri = "https://api-stage.roleypoly.com"
|
api_public_uri = "https://api-stage.roleypoly.com"
|
||||||
allowed_callback_hosts = "https://roleypoly.com,https://stage.roleypoly.com,https://*.roleypoly.pages.dev"
|
allowed_callback_hosts = "https://roleypoly.com,https://stage.roleypoly.com,https://*.roleypoly.pages.dev"
|
||||||
|
|
Loading…
Add table
Reference in a new issue