diff --git a/deploy/kubernetes/main.tf b/deploy/kubernetes/main.tf index 69282e8..cb5faf9 100644 --- a/deploy/kubernetes/main.tf +++ b/deploy/kubernetes/main.tf @@ -76,20 +76,10 @@ variable "thumbservice_password" { type = string } - -locals { - requests = defaults(var.requests, - { - cpu = "250m" - memory = "50Mi" - } - ) - limits = defaults(var.limits, - { - cpu = "1" - memory = "512Mi" - } - ) +variable "photolib_args" { + type = list(string) + description = "additional arguments for the photolib daemon" + default = [] } @@ -127,6 +117,7 @@ resource "kubernetes_deployment" "photolib" { container { name = "web" image = var.image + args = var.photolib_args env { name = "DATABASE_URL"