add isponsorblocktv deployment to block ads at home [ci skip]
This commit is contained in:
parent
57cbf9543c
commit
07323f0536
2 changed files with 60 additions and 0 deletions
56
modules/kubernetes/isponsorblocktv/main.tf
Normal file
56
modules/kubernetes/isponsorblocktv/main.tf
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
# https://github.com/dmunozv04/iSponsorBlockTV
|
||||
|
||||
resource "kubernetes_namespace" "isponsorblocktv" {
|
||||
metadata {
|
||||
name = "isponsorblocktv"
|
||||
labels = {
|
||||
"istio-injection" : "disabled"
|
||||
}
|
||||
}
|
||||
}
|
||||
# Before running, setup config using
|
||||
# docker run --rm -it -v ./youtube:/app/data -e TERM=$TERM -e COLORTERM=$COLORTERM ghcr.io/dmunozv04/isponsorblocktv --setup
|
||||
|
||||
# Mute and skip ads for vermont smart tv
|
||||
resource "kubernetes_deployment" "isponsorblocktv-vermont" {
|
||||
metadata {
|
||||
name = "isponsorblocktv-vermont"
|
||||
namespace = "isponsorblocktv"
|
||||
labels = {
|
||||
app = "isponsorblocktv-vermont"
|
||||
}
|
||||
}
|
||||
spec {
|
||||
replicas = 1
|
||||
selector {
|
||||
match_labels = {
|
||||
app = "isponsorblocktv-vermont"
|
||||
}
|
||||
}
|
||||
template {
|
||||
metadata {
|
||||
labels = {
|
||||
app = "isponsorblocktv-vermont"
|
||||
}
|
||||
}
|
||||
spec {
|
||||
container {
|
||||
image = "ghcr.io/dmunozv04/isponsorblocktv"
|
||||
name = "isponsorblocktv-vermont"
|
||||
volume_mount {
|
||||
name = "data"
|
||||
mount_path = "/app/data"
|
||||
}
|
||||
}
|
||||
volume {
|
||||
name = "data"
|
||||
nfs {
|
||||
server = "10.0.10.15"
|
||||
path = "/mnt/main/isponsorblocktv/vermont"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -720,3 +720,7 @@ module "stirling-pdf" {
|
|||
source = "./stirling-pdf"
|
||||
tls_secret_name = var.tls_secret_name
|
||||
}
|
||||
|
||||
module "isponsorblocktv" {
|
||||
source = "./isponsorblocktv"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue