Skip to content

Commit

Permalink
add resources and optional memory variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mkgharbi-aneo committed Jan 27, 2025
1 parent 994abc2 commit 1ccd584
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions storage/onpremise/activemq/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ resource "kubernetes_deployment" "activemq" {
name = "activemq"
image = "${var.activemq.image}:${var.activemq.tag}"
image_pull_policy = "IfNotPresent"
resources {
requests = var.activemq.requests
limits = var.activemq.limits
}
env {
name = "ACTIVEMQ_OPTS_MEMORY"
value = var.activemq.activemq_opts_memory
}
volume_mount {
name = "activemq-storage-secret-volume"
mount_path = "/credentials/"
Expand Down
3 changes: 3 additions & 0 deletions storage/onpremise/activemq/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ variable "activemq" {
tag = string
node_selector = any
image_pull_secrets = string
limits = optional(map(string))
requests = optional(map(string))
activemq_opts_memory = optional(string)
})
}

Expand Down

0 comments on commit 1ccd584

Please sign in to comment.