This commit is contained in:
2023-08-11 18:46:59 +02:00
parent 640104a958
commit 8126e74004
2 changed files with 24 additions and 24 deletions

View File

@@ -41,8 +41,12 @@ resource "kubectl_manifest" "prj_mongo" {
members: 1
type: ReplicaSet
version: "4.4.0"
podSpec:
podTemplate:
statefulSet:
properties
metadata:
annotations:
"k8up.io/backupcommand": "sh -c 'mongodump --username=$MONGODB_USER --password=$MONGODB_PASSWORD mongodb://localhost/$MONGODB_NAME --archive'"
"k8up.io/file-extension": ".archive"
spec:
containers:
- name: mongod
@@ -56,10 +60,6 @@ resource "kubectl_manifest" "prj_mongo" {
secretKeyRef:
name: "${var.instance}-${var.component}-mongo"
key: password
metadata:
annotations:
"k8up.io/backupcommand": "sh -c 'mongodump --username=$MONGODB_USER --password=$MONGODB_PASSWORD mongodb://localhost/$MONGODB_NAME --archive'"
"k8up.io/file-extension": ".archive"
security:
authentication:
modes: ["SCRAM"]