Filebrowser almost setup now

This commit is contained in:
shockrah 2024-04-24 00:58:59 -07:00
parent fc178a7ed2
commit 9550dbb9b5
2 changed files with 44 additions and 1 deletions

View File

@ -0,0 +1,39 @@
resource kubernetes_pod filebrowser {
metadata {
name = "filebrowser"
namespace = kubernetes_namespace.vault.metadata.0.name
labels = {
app = "filebrowser"
}
}
spec {
container {
image = "filebrowser/filebrowser"
name = "filebrowser"
env {
name = "TZ"
value = "PST"
}
port {
container_port = 80
}
}
}
}
resource kubernetes_service filebrowser {
metadata {
name = "filebrowser"
namespace = kubernetes_namespace.vault.metadata.0.name
}
spec {
selector = {
app = kubernetes_pod.filebrowser.metadata.0.labels.app
}
port {
port = 8000
target_port = 80
}
type = "LoadBalancer"
}
}

View File

@ -1,3 +1,7 @@
output hello_address { output hello {
value = "${var.cluster_dns}:${kubernetes_service.nginx_plain.spec.0.port.0.port}" value = "${var.cluster_dns}:${kubernetes_service.nginx_plain.spec.0.port.0.port}"
} }
output filebrowser {
value = "${var.cluster_dns}:${kubernetes_service.filebrowser.spec.0.port.0.port}"
}