79 lines
1.5 KiB
HCL
79 lines
1.5 KiB
HCL
variable "component" {
|
|
type = string
|
|
}
|
|
variable "instance" {
|
|
type = string
|
|
}
|
|
variable "namespace" {
|
|
type = string
|
|
}
|
|
variable "labels" {
|
|
type = map(string)
|
|
}
|
|
variable "issuer" {
|
|
type = string
|
|
}
|
|
variable "replicas" {
|
|
type = number
|
|
default = 1
|
|
}
|
|
variable "image" {
|
|
type = object({
|
|
registry = optional(string),
|
|
repository = optional(string),
|
|
tag = optional(string),
|
|
pull_policy = optional(string)
|
|
})
|
|
description = "Image parameters"
|
|
default = {
|
|
"registry" = "docker.io"
|
|
"repository" = "rabbitmq"
|
|
"tag" = "3.11.28-management-alpine"
|
|
"pull_policy" = "IfNotPresent"
|
|
}
|
|
}
|
|
variable "storage" {
|
|
description = "Storage parameters"
|
|
type = object({
|
|
class = optional(string),
|
|
size = optional(string),
|
|
})
|
|
default = {
|
|
class = ""
|
|
size = "1Gi"
|
|
}
|
|
}
|
|
variable "resources" {
|
|
description = "Resources parameters"
|
|
type = object({
|
|
requests = optional(object({
|
|
cpu = optional(string),
|
|
memory = optional(string)
|
|
})),
|
|
limits = optional(object({
|
|
cpu = optional(string),
|
|
memory = optional(string)
|
|
}))
|
|
})
|
|
default = {
|
|
requests = {
|
|
cpu = "1000m",
|
|
memory = "2Gi"
|
|
},
|
|
limits = {
|
|
cpu = "1000m",
|
|
memory = "2Gi"
|
|
}
|
|
}
|
|
}
|
|
variable "cert_name" {
|
|
type = string
|
|
default = ""
|
|
description = "Give a secret name for tls, if empty a new one will be created"
|
|
}
|
|
variable "plugins" {
|
|
description = "RabitMQ plugins"
|
|
type = list(string)
|
|
default = ["rabbitmq_mqtt", "rabbitmq_web_mqtt"]
|
|
}
|