Skip to content

Commit

Permalink
Network mode delete (#60)
Browse files Browse the repository at this point in the history
* fix input restriction bug

* test network_mode fix

* remove network_mode variable

* remove space

Co-authored-by: Tim Miller <tim.miller@risk.lexisnexis.com>
  • Loading branch information
dutsmiller and Tim Miller committed Apr 23, 2021
1 parent 17e9e48 commit 9952d57
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,11 @@ resource "azurerm_kubernetes_cluster" "aks" {

network_profile {
network_plugin = var.network_plugin
network_mode = (var.network_plugin == "azure" ? var.network_mode : null)
dns_service_ip = (var.network_profile_options == null ? null : var.network_profile_options.dns_service_ip)
docker_bridge_cidr = (var.network_profile_options == null ? null : var.network_profile_options.docker_bridge_cidr)
service_cidr = (var.network_profile_options == null ? null : var.network_profile_options.service_cidr)
outbound_type = var.outbound_type
pod_cidr = (var.network_plugin == "kubenet" ? var.pod_cidr : null)


}

default_node_pool {
Expand Down
9 changes: 0 additions & 9 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -92,27 +92,18 @@ variable "network_plugin" {
error_message = "Network Plugin must set to kubenet or azure."

}

}

variable "network_mode" {
description = "network mode to br used with Azure CNI"
type = string
default = "transparent"
}

variable "outbound_type" {
description = "outbound (egress) routing method which should be used for this Kubernetes Cluster"
type = string
default = "loadBalancer"

}

variable "pod_cidr" {
description = "used for pod IP addresses"
type = string
default = null

}

variable "network_profile_options" {
Expand Down

0 comments on commit 9952d57

Please sign in to comment.