This commit is contained in:
2023-08-11 18:47:57 +02:00
parent 8126e74004
commit 9957dfa7a4
2 changed files with 50 additions and 50 deletions

View File

@@ -42,7 +42,7 @@ resource "kubectl_manifest" "prj_mongo" {
type: ReplicaSet
version: "4.4.0"
statefulSet:
properties
properties:
metadata:
annotations:
"k8up.io/backupcommand": "sh -c 'mongodump --username=$MONGODB_USER --password=$MONGODB_PASSWORD mongodb://localhost/$MONGODB_NAME --archive'"