Compare commits
3 Commits
37305fd74e
...
79cb4eb1a6
| Author | SHA1 | Date | |
|---|---|---|---|
| 79cb4eb1a6 | |||
| e8817fe093 | |||
| 97bffd2042 |
@@ -40,6 +40,7 @@ locals {
|
|||||||
{ name = "sanity.shockrah.xyz", records = [ var.vke_lb ] },
|
{ name = "sanity.shockrah.xyz", records = [ var.vke_lb ] },
|
||||||
{ name = "uptime.shockrah.xyz", records = [ var.vke_lb ] },
|
{ name = "uptime.shockrah.xyz", records = [ var.vke_lb ] },
|
||||||
{ name = "code.shockrah.xyz", records = [ var.vke_lb ] },
|
{ name = "code.shockrah.xyz", records = [ var.vke_lb ] },
|
||||||
|
{ name = "wiki.shockrah.xyz", records = [ var.vke_lb ] },
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,16 +8,3 @@
|
|||||||
# port = each.value
|
# port = each.value
|
||||||
# }
|
# }
|
||||||
|
|
||||||
resource vultr_firewall_group bastion {
|
|
||||||
description = "For connections into and out of the bastion host"
|
|
||||||
}
|
|
||||||
|
|
||||||
resource vultr_firewall_rule bastion_inbound {
|
|
||||||
firewall_group_id = vultr_firewall_group.bastion.id
|
|
||||||
protocol = "tcp"
|
|
||||||
ip_type = "v4"
|
|
||||||
subnet = "0.0.0.0"
|
|
||||||
subnet_size = 0
|
|
||||||
port = 22
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# NOTE: this is a simple deployment for demo purposes only.
|
||||||
|
# Currently it does support SSH access and lacks Gitea runners.
|
||||||
|
# However a fully working setup can be found at: https://git.shockrah.xyz
|
||||||
resource kubernetes_deployment gitea {
|
resource kubernetes_deployment gitea {
|
||||||
metadata {
|
metadata {
|
||||||
name = "gitea"
|
name = "gitea"
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ locals {
|
|||||||
code = kubernetes_service.gitea
|
code = kubernetes_service.gitea
|
||||||
sanity = kubernetes_service.health
|
sanity = kubernetes_service.health
|
||||||
uptime = kubernetes_service.kuma
|
uptime = kubernetes_service.kuma
|
||||||
|
wiki = kubernetes_service.otterwiki
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
resource kubernetes_ingress_v1 health {
|
resource kubernetes_ingress_v1 health {
|
||||||
@@ -20,7 +21,8 @@ resource kubernetes_ingress_v1 health {
|
|||||||
hosts = [
|
hosts = [
|
||||||
"sanity.shockrah.xyz",
|
"sanity.shockrah.xyz",
|
||||||
"uptime.shockrah.xyz",
|
"uptime.shockrah.xyz",
|
||||||
"code.shockrah.xyz"
|
"code.shockrah.xyz",
|
||||||
|
"wiki.shockrah.xyz"
|
||||||
]
|
]
|
||||||
secret_name = "shockrah"
|
secret_name = "shockrah"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,22 +40,10 @@ variable cluster {
|
|||||||
variable playground {
|
variable playground {
|
||||||
type = object({
|
type = object({
|
||||||
namespace = string
|
namespace = string
|
||||||
health = object({
|
# TODO: Re-incorporate this var for templating later
|
||||||
dns = string
|
|
||||||
})
|
|
||||||
tls = object({
|
tls = object({
|
||||||
email = string
|
email = string
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
variable bastion {
|
|
||||||
type = object({
|
|
||||||
plan = string
|
|
||||||
os = string
|
|
||||||
label = string
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,17 +18,7 @@ playground = {
|
|||||||
namespace = "playground"
|
namespace = "playground"
|
||||||
# Sanity check service that is used purely for the sake of ensuring
|
# Sanity check service that is used purely for the sake of ensuring
|
||||||
# things are ( at a basic level ) functional
|
# things are ( at a basic level ) functional
|
||||||
health = {
|
|
||||||
dns = "health"
|
|
||||||
}
|
|
||||||
tls = {
|
tls = {
|
||||||
email = "dev@shockrah.xyz"
|
email = "dev@shockrah.xyz"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bastion = {
|
|
||||||
plan = "vc2-1c-2gb"
|
|
||||||
label = "bastion"
|
|
||||||
os = "1743"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user