Skip to content

Commit

Permalink
aks with azure cni: set azure cni with default options
Browse files Browse the repository at this point in the history
  • Loading branch information
ValyaB authored Nov 3, 2023
1 parent cd2621d commit 6bdf8e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 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
3 changes: 1 addition & 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,7 @@ 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
}

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"
10 changes: 2 additions & 8 deletions examples/aks/aks_cluster_azure_cni/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,12 @@ variable "cluster_version" {
default = "1.23"
}

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

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

# Variables required for connecting EKS cluster to CAST AI
variable "castai_api_token" {
type = string
Expand Down

0 comments on commit 6bdf8e1

Please sign in to comment.