Pin Calico node address autodetection
This commit is contained in:
parent
aca71f7cd3
commit
c4773afaea
|
|
@ -99,6 +99,9 @@ resource "helm_release" "calico" {
|
||||||
}
|
}
|
||||||
calicoNetwork = {
|
calicoNetwork = {
|
||||||
bgp = "Disabled"
|
bgp = "Disabled"
|
||||||
|
nodeAddressAutodetectionV4 = {
|
||||||
|
cidrs = var.calico_node_address_autodetection_cidrs
|
||||||
|
}
|
||||||
ipPools = [
|
ipPools = [
|
||||||
{
|
{
|
||||||
cidr = var.pod_network_cidr
|
cidr = var.pod_network_cidr
|
||||||
|
|
@ -115,9 +118,10 @@ resource "null_resource" "calico_ready" {
|
||||||
depends_on = [helm_release.calico]
|
depends_on = [helm_release.calico]
|
||||||
|
|
||||||
triggers = {
|
triggers = {
|
||||||
kubeconfig_path = var.kubeconfig_path
|
kubeconfig_path = var.kubeconfig_path
|
||||||
calico_version = var.calico.version
|
calico_version = var.calico.version
|
||||||
pod_network_cidr = var.pod_network_cidr
|
pod_network_cidr = var.pod_network_cidr
|
||||||
|
calico_node_address_autodetection_cidrs = join(",", var.calico_node_address_autodetection_cidrs)
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "local-exec" {
|
provisioner "local-exec" {
|
||||||
|
|
@ -330,3 +334,4 @@ resource "helm_release" "extra_tools" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,11 @@ variable "pod_network_cidr" {
|
||||||
default = "10.244.0.0/16"
|
default = "10.244.0.0/16"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
variable "calico_node_address_autodetection_cidrs" {
|
||||||
|
type = list(string)
|
||||||
|
default = ["192.168.100.0/24"]
|
||||||
|
}
|
||||||
|
|
||||||
variable "calico_operator_node_name" {
|
variable "calico_operator_node_name" {
|
||||||
type = string
|
type = string
|
||||||
default = "debian"
|
default = "debian"
|
||||||
|
|
@ -85,3 +90,4 @@ variable "extra_helm_releases" {
|
||||||
|
|
||||||
default = {}
|
default = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue