Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ resource "azurerm_kubernetes_cluster" "main" {
private_dns_zone_id = var.private_dns_zone_id
private_cluster_public_fqdn_enabled = var.private_cluster_public_fqdn_enabled
local_account_disabled = var.local_account_disabled
api_server_authorized_ip_ranges = var.api_server_authorized_ip_ranges

dynamic "linux_profile" {
for_each = var.admin_username == null ? [] : ["linux_profile"]
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ variable "client_secret" {
default = ""
}

variable "api_server_authorized_ip_ranges" {
type = set(string)
description = "(Optional) The IP ranges to allow for incoming traffic to the server nodes."
default = null
}

variable "admin_username" {
default = null
description = "The username of the local administrator to be created on the Kubernetes cluster. Set this variable to `null` to turn off the cluster's `linux_profile`. Changing this forces a new resource to be created."
Expand Down