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

34 lines
454 B
Terraform
Raw Permalink Normal View History

2022-05-29 11:37:13 +00:00
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"
]
}
}