feat(ebooks): mount stacks-config PVC in book-search for force re-download

Adds stacks-config volume mount to book-search pod so it can delete
Stacks history entries and force re-downloads when a book was consumed
by CWA but failed to import.
This commit is contained in:
Viktor Barzin 2026-03-29 11:26:30 +03:00
parent 6d44b4292f
commit fed9df8c0e

View file

@ -740,6 +740,10 @@ resource "kubernetes_deployment" "book_search" {
name = "SHORTCUT_ICLOUD_URL"
value = ""
}
env {
name = "STACKS_DB_PATH"
value = "/stacks-config/queue.db"
}
resources {
requests = {
cpu = "10m"
@ -765,6 +769,10 @@ resource "kubernetes_deployment" "book_search" {
name = "audiobooks"
mount_path = "/audiobooks"
}
volume_mount {
name = "stacks-config"
mount_path = "/stacks-config"
}
}
volume {
name = "cwa-ingest"
@ -778,6 +786,12 @@ resource "kubernetes_deployment" "book_search" {
claim_name = module.nfs_audiobookshelf_audiobooks.claim_name
}
}
volume {
name = "stacks-config"
persistent_volume_claim {
claim_name = module.nfs_calibre_stacks_config.claim_name
}
}
}
}
}