1
0
Fork 0
terraform-playground/k8s-single-node/firewall.tf

34 lines
454 B
HCL

resource "hcloud_firewall" "k8s-single" {
name = "k8s-single"
rule {
direction = "in"
protocol = "icmp"
source_ips = [
"0.0.0.0/0",
"::/0"
]
}
rule {
direction = "in"
protocol = "tcp"
port = "22"
source_ips = [
"0.0.0.0/0",
"::/0"
]
}
rule {
direction = "in"
protocol = "tcp"
port = "6443"
source_ips = [
"0.0.0.0/0",
"::/0"
]
}
}