This commit is contained in:
parent
2e588149be
commit
7ddb2b933c
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user