Skip to content

Commit

Permalink
feat(aks): enable parametrization of storage account used by loki (ca…
Browse files Browse the repository at this point in the history
  • Loading branch information
fsismondi authored Dec 14, 2021
1 parent bffcc9b commit 0be4796
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
6 changes: 3 additions & 3 deletions modules/aks/azure/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ resource "azurerm_storage_account" "this" {
name = random_string.storage_account.result
resource_group_name = module.cluster.node_resource_group
location = data.azurerm_resource_group.this.location
account_tier = "Standard"
account_replication_type = "GRS"
account_tier = var.storage_account_tier
account_replication_type = var.storage_account_replication_type
}

resource "azurerm_storage_container" "loki" {
Expand Down Expand Up @@ -240,7 +240,7 @@ data "azurerm_client_config" "current" {}
resource "azuread_application" "oauth2_apps" {
count = var.oidc == null ? 1 : 0

display_name = "oauth2-apps-${var.cluster_name}"
display_name = "oauth2-apps-${var.cluster_name}"

required_resource_access {
resource_app_id = random_uuid.resource_app_id.0.result
Expand Down
12 changes: 12 additions & 0 deletions modules/aks/azure/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,15 @@ variable "node_pools" {
description = "List of node pools with minimal configuration"
type = map(any)
}

variable "storage_account_tier" {
description = "Storage account tier used for storing loki logs"
default = "Standard"
type = string
}

variable "storage_account_replication_type" {
description = "Storage account replication type for storing loki logs"
default = "GRS"
type = string
}
1 change: 0 additions & 1 deletion modules/cce/opentelekomcloud/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ variable "keycloak_users" {
type = map(map(string))
default = {}
}

0 comments on commit 0be4796

Please sign in to comment.