34 lines
454 B
Terraform
34 lines
454 B
Terraform
|
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"
|
||
|
]
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|