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"
|
source = "vultr/vultr"
|
||||||
version = "2.22.1"
|
version = "2.22.1"
|
||||||
}
|
}
|
||||||
|
kubernetes = {
|
||||||
|
source = "hashicorp/kubernetes"
|
||||||
|
version = "2.34.0"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,4 +35,8 @@ provider aws {
|
|||||||
max_retries = 1
|
max_retries = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
provider kubernetes {
|
||||||
|
config_path = "config.yaml"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,7 +2,9 @@ resource vultr_kubernetes athens {
|
|||||||
region = var.cluster.region
|
region = var.cluster.region
|
||||||
version = var.cluster.version
|
version = var.cluster.version
|
||||||
label = var.cluster.label
|
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 {
|
node_pools {
|
||||||
# how many nodes do we want in this pool
|
# how many nodes do we want in this pool
|
||||||
node_quantity = 1
|
node_quantity = 1
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
# Inbound rules for web traffic
|
|
||||||
resource vultr_firewall_rule web_inbound {
|
resource vultr_firewall_rule web_inbound {
|
||||||
for_each = toset([for port in [80, 443, 6443] : tostring(port) ])
|
for_each = toset([for port in [80, 443, 6443] : tostring(port) ])
|
||||||
firewall_group_id = vultr_kubernetes.athens.firewall_group_id
|
firewall_group_id = vultr_kubernetes.athens.firewall_group_id
|
||||||
#firewall_group_id = vultr_firewall_group.cluster.id
|
|
||||||
protocol = "tcp"
|
protocol = "tcp"
|
||||||
ip_type = "v4"
|
ip_type = "v4"
|
||||||
subnet = "0.0.0.0"
|
subnet = "0.0.0.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user