Skip to content

Commit

Permalink
aks with azure cni: use calico
Browse files Browse the repository at this point in the history
  • Loading branch information
ValyaB committed Nov 2, 2023
1 parent cd2621d commit e8d542a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ examples/**/.terraform/
examples/**/terraform.d/
examples/**/crash.log
examples/**/*.tfstate
examples/**/*.tfstate.lock.info
examples/**/*.tfstate.backup
examples/**/.terraform.lock.hcl
examples/**/*.tfvars
Expand Down
4 changes: 2 additions & 2 deletions examples/aks/aks_cluster_azure_cni/aks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ resource "azurerm_kubernetes_cluster" "this" {
}

network_profile {
network_plugin = var.cluster_network_provider
network_plugin_mode = var.cluster_network_provider_mode
network_plugin = var.cluster_network_plugin
network_policy = var.cluster_network_policy
}

identity {
Expand Down
3 changes: 0 additions & 3 deletions examples/aks/aks_cluster_azure_cni/tf.vars.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
cluster_name = "<place-holder>"
cluster_region = "<place-holder>"
castai_api_token = "<place-holder>"

# Enable for Overlay network provider mode
# cluster_network_provider_mode = "Overlay"
8 changes: 4 additions & 4 deletions examples/aks/aks_cluster_azure_cni/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ variable "cluster_version" {
default = "1.23"
}

variable "cluster_network_provider" {
variable "cluster_network_plugin" {
type = string
description = "AKS cluster network provider"
default = "azure"
}

variable "cluster_network_provider_mode" {
variable "cluster_network_policy" {
type = string
description = "AKS cluster network provider mode"
default = ""
description = "AKS cluster network policy"
default = "calico"
}

# Variables required for connecting EKS cluster to CAST AI
Expand Down

0 comments on commit e8d542a

Please sign in to comment.