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)} labels: ${jsonencode(local.mongo-labels)}
spec: spec:
members: 1 members: 1
type: ReplicaSet type: ${var.mongo_type}
version: "7.0.2" version: "${var.mongo_version}"
statefulSet: statefulSet:
spec: spec:
template: template:

View File

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