Skip to content

Commit ca33b24

Browse files
authored
Add cluster_network_policy variable to enable Network Policy (#13)
1 parent 9c0bc20 commit ca33b24

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Diff for: kubernetes.tf

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ resource "azurerm_kubernetes_cluster" "quortex" {
4949

5050
network_profile {
5151
network_plugin = var.cluster_network_plugin
52+
network_policy = var.cluster_network_policy
5253
dns_service_ip = var.cluster_dns_service_ip
5354
service_cidr = var.cluster_service_cidr
5455
pod_cidr = var.cluster_pod_cidr

Diff for: variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ variable "cluster_network_plugin" {
8080
default = "azure"
8181
}
8282

83+
variable "cluster_network_policy" {
84+
type = string
85+
description = "Sets up network policy to be used with Azure CNI. Network policy allows us to control the traffic flow between pods. Currently supported values are azure."
86+
default = null
87+
}
88+
8389
variable "cluster_dns_service_ip" {
8490
type = string
8591
description = "IP address within the Kubernetes service address range that will be used by cluster service discovery (kube-dns). This is required when network_plugin is set to azure."

0 commit comments

Comments
 (0)