This commit is contained in:
2024-01-28 10:09:48 +01:00
parent 96714b7186
commit ccfac82ad4
2 changed files with 4 additions and 4 deletions

View File

@@ -40,8 +40,8 @@ resource "kubectl_manifest" "prj_mongo" {
labels: ${jsonencode(local.mongo-labels)}
spec:
members: 1
type: ReplicaSet
version: "7.0.2"
type: ${var.mongo_type}
version: "${var.mongo_version}"
statefulSet:
spec:
template:

View File

@@ -18,11 +18,11 @@ variable "username" {
type = string
default = ""
}
variable "version" {
variable "mongo_version" {
type = string
default = "6.3.2"
}
variable "type" {
variable "mongo_type" {
type = string
default = "ReplicaSet"
}