Skip to content

Commit

Permalink
make api_server_authorized_ip_ranges configurable.
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Jul 13, 2022
1 parent d79c2d3 commit da2918f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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

0 comments on commit da2918f

Please sign in to comment.