Firewall and provider version bump

This commit is contained in:
shockrah 2024-01-16 19:49:52 -08:00
parent 31cee5a125
commit cb065d22f2
5 changed files with 23 additions and 1 deletions

View File

@ -13,7 +13,7 @@ terraform {
}
vultr = {
source = "vultr/vultr"
version = "2.16.4"
version = "2.19.0"
}
}
}

View File

@ -2,6 +2,7 @@ resource vultr_kubernetes athens {
region = var.cluster.region
version = var.cluster.version
label = var.cluster.label
enable_firewall = true
node_pools {
# how many pools do we want
node_quantity = 1

View File

@ -0,0 +1,12 @@
# Inbound rules for web traffic
resource vultr_firewall_rule web_inbound {
for_each = toset([for port in [80, 443] : 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"
subnet_size = 0
port = each.value
}

View File

@ -1,5 +1,11 @@
# Kubernetes Cluster On Vultr
# Kubectl Fresh setup
Check this link for installation instructions on \*nix systems:
https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/

3
k8s/readme.md Normal file
View File

@ -0,0 +1,3 @@
# What is this
This folder contains various services that I host on Vultrs Kuberentes Engine