Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Ensono/stacks-terraform into feat…
Browse files Browse the repository at this point in the history
…/domain-setup
  • Loading branch information
ElvenSpellmaker committed Jul 15, 2024
2 parents dd9c7ae + 86bb89f commit 38113af
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions azurerm/modules/azurerm-aks/aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resource "azurerm_container_registry" "registry" {
location = var.resource_group_location
admin_enabled = var.registry_admin_enabled
sku = var.registry_sku

lifecycle {
ignore_changes = [
tags,
Expand All @@ -27,7 +28,9 @@ resource "azurerm_kubernetes_cluster" "default" {
resource_group_name = azurerm_resource_group.default.name
dns_prefix = var.dns_prefix
kubernetes_version = var.cluster_version
sku_tier = var.cluster_sku_tier
private_cluster_enabled = var.private_cluster_enabled

linux_profile {
admin_username = var.admin_username
ssh_key {
Expand Down
14 changes: 13 additions & 1 deletion azurerm/modules/azurerm-aks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ variable "dns_parent_zone" {
type = string
description = "Dns zone name for the parnet - e.g. domain.com. NOTE: you need control over this domain to add the records here"

default = ""
default = null
}

variable "dns_parent_ns_ttl" {
Expand Down Expand Up @@ -243,6 +243,18 @@ variable "cluster_version" {
default = "1.24.6"
}

variable "cluster_sku_tier" {
description = "The Control Plane SKU Tier"
type = string

validation {
condition = contains(["Free", "Standard", "Premium"], var.cluster_sku_tier)
error_message = "Must be one of Free, Standard, or Premium."
}

default = "Free"
}

variable "cluster_name" {
description = "Name for the cluster"
type = string
Expand Down

0 comments on commit 38113af

Please sign in to comment.