Firewall and provider version bump
This commit is contained in:
parent
31cee5a125
commit
cb065d22f2
@ -13,7 +13,7 @@ terraform {
|
|||||||
}
|
}
|
||||||
vultr = {
|
vultr = {
|
||||||
source = "vultr/vultr"
|
source = "vultr/vultr"
|
||||||
version = "2.16.4"
|
version = "2.19.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@ 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
|
||||||
node_pools {
|
node_pools {
|
||||||
# how many pools do we want
|
# how many pools do we want
|
||||||
node_quantity = 1
|
node_quantity = 1
|
||||||
|
12
infra/vultr-kubernetes/firewall.tf
Normal file
12
infra/vultr-kubernetes/firewall.tf
Normal 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
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,11 @@
|
|||||||
# Kubernetes Cluster On Vultr
|
# 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
3
k8s/readme.md
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# What is this
|
||||||
|
|
||||||
|
This folder contains various services that I host on Vultrs Kuberentes Engine
|
Loading…
Reference in New Issue
Block a user