Move media stack to tofu

This commit is contained in:
Antonin Ruan
2026-02-09 23:10:53 +01:00
parent f20172f6a4
commit 22df3a9c8c
16 changed files with 1061 additions and 502 deletions

24
media/main.tf Normal file
View File

@@ -0,0 +1,24 @@
provider "kubernetes" {
config_path="~/.kube/config"
}
variable "domain" {
type = string
}
variable "media_storage" {
type = object({
server_ip = string
root_path = string
torrent_path = string
jellyfin_path = string
movies_path = string
shows_path = string
})
}
resource "kubernetes_namespace_v1" "media" {
metadata {
name = "media"
}
}