Compare commits
No commits in common. "c6b2a062e961c7b31b8831ee9a1d1edc399b2125" and "cfe631eba7d28cf703c3c8b08180f84313e2ba6d" have entirely different histories.
c6b2a062e9
...
cfe631eba7
@ -38,7 +38,6 @@ locals {
|
||||
{ name = "resume.shockrah.xyz", records = [ var.vultr_host ] },
|
||||
{ name = "git.shockrah.xyz", records = [ var.vultr_host ] },
|
||||
{ name = "sanity.shockrah.xyz", records = [ var.vke_lb ] },
|
||||
{ name = "uptime.shockrah.xyz", records = [ var.vke_lb ] },
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
@ -10,10 +10,7 @@ resource kubernetes_ingress_v1 health {
|
||||
spec {
|
||||
ingress_class_name = "nginx"
|
||||
tls {
|
||||
hosts = [
|
||||
"sanity.shockrah.xyz",
|
||||
"uptime.shockrah.xyz"
|
||||
]
|
||||
hosts = [ "sanity.shockrah.xyz" ]
|
||||
secret_name = "shockrah"
|
||||
}
|
||||
rule {
|
||||
@ -32,22 +29,6 @@ resource kubernetes_ingress_v1 health {
|
||||
}
|
||||
}
|
||||
}
|
||||
rule {
|
||||
host = "uptime.shockrah.xyz"
|
||||
http {
|
||||
path {
|
||||
path = "/"
|
||||
backend {
|
||||
service {
|
||||
name = kubernetes_service.kuma.metadata[0].name
|
||||
port {
|
||||
number = kubernetes_service.kuma.spec[0].port[0].port
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -5,13 +5,4 @@ resource kubernetes_namespace playground {
|
||||
}
|
||||
name = var.playground.namespace
|
||||
}
|
||||
}
|
||||
|
||||
resource kubernetes_namespace dev {
|
||||
metadata {
|
||||
annotations = {
|
||||
names = "dev"
|
||||
}
|
||||
name = "dev"
|
||||
}
|
||||
}
|
||||
@ -1,61 +0,0 @@
|
||||
resource kubernetes_deployment kuma {
|
||||
metadata {
|
||||
name = "kuma"
|
||||
namespace = var.playground.namespace
|
||||
labels = {
|
||||
"app" = "kuma"
|
||||
}
|
||||
}
|
||||
spec {
|
||||
replicas = 1
|
||||
selector {
|
||||
match_labels = {
|
||||
"app" = "kuma"
|
||||
}
|
||||
}
|
||||
template {
|
||||
metadata {
|
||||
labels = {
|
||||
"app" = "kuma"
|
||||
}
|
||||
}
|
||||
spec {
|
||||
container {
|
||||
name = "kuma"
|
||||
image = "louislam/uptime-kuma:2"
|
||||
port {
|
||||
container_port = 3001
|
||||
name = "uptime-kuma"
|
||||
}
|
||||
volume_mount {
|
||||
name = "kuma-data"
|
||||
mount_path = "/app/data"
|
||||
}
|
||||
}
|
||||
volume {
|
||||
name = "kuma-data"
|
||||
persistent_volume_claim {
|
||||
claim_name = kubernetes_persistent_volume_claim_v1.kuma.metadata[0].name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resource kubernetes_service kuma {
|
||||
metadata {
|
||||
name = "kuma"
|
||||
namespace = var.playground.namespace
|
||||
}
|
||||
spec {
|
||||
selector = {
|
||||
"app" = "kuma"
|
||||
}
|
||||
port {
|
||||
target_port = "uptime-kuma"
|
||||
port = 3001
|
||||
name = "http"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,17 +1,15 @@
|
||||
# This volume will have to get scrapped and reconfigured
|
||||
# as this will be part of a "worksite" namespace for "boring" stuff
|
||||
resource kubernetes_persistent_volume_claim_v1 kuma {
|
||||
resource kubernetes_persistent_volume_claim_v1 gitea {
|
||||
metadata {
|
||||
name = "kuma-data"
|
||||
name = "gitea"
|
||||
namespace = var.playground.namespace
|
||||
}
|
||||
spec {
|
||||
volume_mode = "Filesystem"
|
||||
access_modes = [ "ReadWriteOnce"]
|
||||
resources {
|
||||
requests = {
|
||||
storage = "10Gi"
|
||||
access_modes = [ "ReadWriteMany"]
|
||||
resources {
|
||||
requests = {
|
||||
storage = "10Gi"
|
||||
}
|
||||
}
|
||||
}
|
||||
storage_class_name = "vultr-vfs-storage"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user