From cd02f24f3bbf07577d2a8e81f3d4a5f1de1c7853 Mon Sep 17 00:00:00 2001 From: Mikhail Goncharov Date: Wed, 24 May 2023 14:10:33 +0200 Subject: [PATCH] local machines --- terraform/billing.tf | 48 -------------------------- terraform/kubernetes/linux-agents.yaml | 2 ++ 2 files changed, 2 insertions(+), 48 deletions(-) delete mode 100644 terraform/billing.tf diff --git a/terraform/billing.tf b/terraform/billing.tf deleted file mode 100644 index a7c39c2..0000000 --- a/terraform/billing.tf +++ /dev/null @@ -1,48 +0,0 @@ -#todo fix billing alert creation -data "google_billing_account" "account" { - billing_account = var.billing-account -} - -resource "google_billing_budget" "budget" { - billing_account = data.google_billing_account.account.id - display_name = "budget" - amount { - specified_amount { - currency_code = "USD" - units = var.billing-budget - } - } - - budget_filter { - projects = ["projects/${var.project-id}"] - credit_types_treatment = "EXCLUDE_ALL_CREDITS" - #services = ["services/24E6-581D-38E5"] # Bigquery - } - - threshold_rules { - threshold_percent = 0.5 - } - threshold_rules { - threshold_percent = 0.9 - } - threshold_rules { - threshold_percent = 1.0 - } - - all_updates_rule { - monitoring_notification_channels = [ - for k, v in google_monitoring_notification_channel.notification_channel : google_monitoring_notification_channel.notification_channel[k].id - ] - disable_default_iam_recipients = true - } -} - -resource "google_monitoring_notification_channel" "notification_channel" { - for_each = var.billing-admins - display_name = each.key - type = "email" - - labels = { - email_address = each.value - } -} \ No newline at end of file diff --git a/terraform/kubernetes/linux-agents.yaml b/terraform/kubernetes/linux-agents.yaml index 25db26b..ad73287 100644 --- a/terraform/kubernetes/linux-agents.yaml +++ b/terraform/kubernetes/linux-agents.yaml @@ -35,6 +35,8 @@ spec: containers: - name: buildkite-premerge-debian image: gcr.io/${project-id}/buildkite-premerge-debian:latest + command: ["tail"] + args: ["-f", "/dev/null"] resources: limits: cpu: ${cpu-request}