Skip to content

Commit

Permalink
feature/private_cluster (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorges authored Oct 9, 2020
1 parent d889a31 commit c93e63c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
12 changes: 6 additions & 6 deletions aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ resource "azurerm_subnet" "k8s_agent_subnet" {
}

resource "azurerm_kubernetes_cluster" "k8s_cluster" {
name = var.cluster_name
location = var.resource_group_location
resource_group_name = var.resource_group_name
dns_prefix = var.dns_prefix

kubernetes_version = var.k8s_version
name = var.cluster_name
location = var.resource_group_location
resource_group_name = var.resource_group_name
dns_prefix = var.dns_prefix
private_cluster_enabled = var.private_cluster_enabled
kubernetes_version = var.k8s_version

linux_profile {
admin_username = var.admin_username
Expand Down
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,8 @@ output "name" {
output "id" {
value = azurerm_kubernetes_cluster.k8s_cluster.id
}

output "private_fqdn" {
value = azurerm_kubernetes_cluster.k8s_cluster.private_fqdn
}

6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,9 @@ variable "metrics" {
}))
default = {}
}

variable "private_cluster_enabled" {
type = bool
default = false
}

0 comments on commit c93e63c

Please sign in to comment.