switch discovery on

This commit is contained in:
Serge Logvinov
2022-12-19 17:51:07 +02:00
parent 2945d2949a
commit 2f9e98f3cd
3 changed files with 16 additions and 12 deletions

View File

@@ -53,6 +53,8 @@ cluster:
controlPlane:
endpoint: https://${apiDomain}:6443
clusterName: ${clusterName}
discovery:
enabled: true
network:
dnsDomain: ${domain}
podSubnets: ${format("%#v",split(",",podSubnets))}

View File

@@ -55,6 +55,8 @@ cluster:
controlPlane:
endpoint: https://${apiDomain}:6443
clusterName: ${clusterName}
discovery:
enabled: true
network:
dnsDomain: ${domain}
podSubnets: ${format("%#v",split(",",podSubnets))}

View File

@@ -51,18 +51,18 @@ resource "hcloud_firewall" "controlplane" {
port = "50001"
source_ips = [var.vpc_main_cidr]
}
rule {
direction = "in"
protocol = "tcp"
port = "2379"
source_ips = ["0.0.0.0/0"]
}
rule {
direction = "in"
protocol = "tcp"
port = "2380"
source_ips = ["0.0.0.0/0"]
}
# rule {
# direction = "in"
# protocol = "tcp"
# port = "2379"
# source_ips = ["0.0.0.0/0"]
# }
# rule {
# direction = "in"
# protocol = "tcp"
# port = "2380"
# source_ips = ["0.0.0.0/0"]
# }
rule {
direction = "in"
protocol = "tcp"