Fixing constantly changing cluster fire wall group id
This commit is contained in:
parent
c50deddf53
commit
52e8c56682
@ -15,6 +15,10 @@ terraform {
|
||||
source = "vultr/vultr"
|
||||
version = "2.22.1"
|
||||
}
|
||||
kubernetes = {
|
||||
source = "hashicorp/kubernetes"
|
||||
version = "2.34.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,4 +35,8 @@ provider aws {
|
||||
max_retries = 1
|
||||
}
|
||||
|
||||
provider kubernetes {
|
||||
config_path = "config.yaml"
|
||||
}
|
||||
|
||||
|
||||
|
@ -2,7 +2,9 @@ resource vultr_kubernetes athens {
|
||||
region = var.cluster.region
|
||||
version = var.cluster.version
|
||||
label = var.cluster.label
|
||||
enable_firewall = true
|
||||
# BUG: only have this set when creating the resource for the first time
|
||||
# once the cluster is up, we should comment this out again
|
||||
# enable_firewall = true
|
||||
node_pools {
|
||||
# how many nodes do we want in this pool
|
||||
node_quantity = 1
|
||||
|
@ -1,8 +1,6 @@
|
||||
# Inbound rules for web traffic
|
||||
resource vultr_firewall_rule web_inbound {
|
||||
for_each = toset([for port in [80, 443, 6443] : tostring(port) ])
|
||||
firewall_group_id = vultr_kubernetes.athens.firewall_group_id
|
||||
#firewall_group_id = vultr_firewall_group.cluster.id
|
||||
protocol = "tcp"
|
||||
ip_type = "v4"
|
||||
subnet = "0.0.0.0"
|
||||
|
Loading…
Reference in New Issue
Block a user