Skip to content

Commit 017a6d0

Browse files
authored
Merge pull request #8295 from ameukam/kops-ci-storage-account
Azure: setup a Storage account for kOps
2 parents 1be34d5 + dc8a91e commit 017a6d0

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

infra/azure/terraform/k8s-infra-prow-build/main.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,14 @@ resource "azurerm_resource_group" "rg" {
4545
}
4646
}
4747

48+
49+
resource "azurerm_storage_account" "stkops" {
50+
name = var.kops_storage_account_name
51+
location = module.azure_region.location
52+
resource_group_name = azurerm_resource_group.rg.name
53+
account_tier = "Standard"
54+
min_tls_version = "TLS1_0"
55+
account_replication_type = "RAGRS"
56+
cross_tenant_replication_enabled = true
57+
depends_on = [azurerm_resource_group.rg]
58+
}

infra/azure/terraform/k8s-infra-prow-build/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ variable "default_region" {
2929
type = string
3030
default = "eastus2"
3131
}
32+
33+
variable "kops_storage_account_name" {
34+
type = string
35+
default = "stkopsstatestore"
36+
}

0 commit comments

Comments
 (0)