adding MongoDB
This commit is contained in:
55
mongo/variables.tf
Normal file
55
mongo/variables.tf
Normal file
@@ -0,0 +1,55 @@
|
||||
variable "component" {
|
||||
type = string
|
||||
}
|
||||
variable "instance" {
|
||||
type = string
|
||||
}
|
||||
variable "namespace" {
|
||||
type = string
|
||||
}
|
||||
variable "labels" {
|
||||
type = map(string)
|
||||
}
|
||||
variable "db_name" {
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
variable "username" {
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
variable "version" {
|
||||
type = string
|
||||
default = "6.3.2"
|
||||
}
|
||||
variable "type" {
|
||||
type = string
|
||||
default = "ReplicaSet"
|
||||
}
|
||||
variable "pullPolicy" {
|
||||
type = string
|
||||
default = "IfNotPresent"
|
||||
}
|
||||
variable "resources" {
|
||||
type = object({
|
||||
limits = optional(object({
|
||||
cpu = string
|
||||
memory = string
|
||||
}))
|
||||
requests = optional(object({
|
||||
cpu = string
|
||||
memory = string
|
||||
}))
|
||||
})
|
||||
default = {
|
||||
limits = {
|
||||
cpu = "1"
|
||||
memory = "1100M"
|
||||
}
|
||||
requests = {
|
||||
cpu = "0.3"
|
||||
memory = "400M"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user