diff --git a/locals.tf b/locals.tf index 6f6e3f2..d40ccd0 100644 --- a/locals.tf +++ b/locals.tf @@ -172,6 +172,13 @@ locals { limits = { for k, v in var.resources.memcached_index_queries.limits : k => v if v != null } } } + memcachedIndexWrites = { + enabled = true + resources = { + requests = { for k, v in var.resources.memcached_index_writes.requests : k => v if v != null } + limits = { for k, v in var.resources.memcached_index_writes.limits : k => v if v != null } + } + } queryScheduler = { enabled = true affinity = "" diff --git a/variables.tf b/variables.tf index 7957e92..97b2eec 100644 --- a/variables.tf +++ b/variables.tf @@ -174,6 +174,17 @@ variable "resources" { }), {}) }), {}) + memcached_index_writes = optional(object({ + requests = optional(object({ + cpu = optional(string, "100m") + memory = optional(string, "256Mi") + }), {}) + limits = optional(object({ + cpu = optional(string) + memory = optional(string, "512Mi") + }), {}) + }), {}) + promtail = optional(object({ requests = optional(object({ cpu = optional(string, "100m")