mirror of
https://github.com/optim-enterprises-bv/terraform-talos.git
synced 2025-11-01 02:38:31 +00:00
switch discovery on
This commit is contained in:
@@ -53,6 +53,8 @@ cluster:
|
|||||||
controlPlane:
|
controlPlane:
|
||||||
endpoint: https://${apiDomain}:6443
|
endpoint: https://${apiDomain}:6443
|
||||||
clusterName: ${clusterName}
|
clusterName: ${clusterName}
|
||||||
|
discovery:
|
||||||
|
enabled: true
|
||||||
network:
|
network:
|
||||||
dnsDomain: ${domain}
|
dnsDomain: ${domain}
|
||||||
podSubnets: ${format("%#v",split(",",podSubnets))}
|
podSubnets: ${format("%#v",split(",",podSubnets))}
|
||||||
|
|||||||
@@ -55,6 +55,8 @@ cluster:
|
|||||||
controlPlane:
|
controlPlane:
|
||||||
endpoint: https://${apiDomain}:6443
|
endpoint: https://${apiDomain}:6443
|
||||||
clusterName: ${clusterName}
|
clusterName: ${clusterName}
|
||||||
|
discovery:
|
||||||
|
enabled: true
|
||||||
network:
|
network:
|
||||||
dnsDomain: ${domain}
|
dnsDomain: ${domain}
|
||||||
podSubnets: ${format("%#v",split(",",podSubnets))}
|
podSubnets: ${format("%#v",split(",",podSubnets))}
|
||||||
|
|||||||
@@ -51,18 +51,18 @@ resource "hcloud_firewall" "controlplane" {
|
|||||||
port = "50001"
|
port = "50001"
|
||||||
source_ips = [var.vpc_main_cidr]
|
source_ips = [var.vpc_main_cidr]
|
||||||
}
|
}
|
||||||
rule {
|
# rule {
|
||||||
direction = "in"
|
# direction = "in"
|
||||||
protocol = "tcp"
|
# protocol = "tcp"
|
||||||
port = "2379"
|
# port = "2379"
|
||||||
source_ips = ["0.0.0.0/0"]
|
# source_ips = ["0.0.0.0/0"]
|
||||||
}
|
# }
|
||||||
rule {
|
# rule {
|
||||||
direction = "in"
|
# direction = "in"
|
||||||
protocol = "tcp"
|
# protocol = "tcp"
|
||||||
port = "2380"
|
# port = "2380"
|
||||||
source_ips = ["0.0.0.0/0"]
|
# source_ips = ["0.0.0.0/0"]
|
||||||
}
|
# }
|
||||||
rule {
|
rule {
|
||||||
direction = "in"
|
direction = "in"
|
||||||
protocol = "tcp"
|
protocol = "tcp"
|
||||||
|
|||||||
Reference in New Issue
Block a user