Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/e2e/backup_restore_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ var _ = ginkgo.Describe("Backup and restore tests", ginkgo.Ordered, func() {
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.XEntry("Mongo application CSI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ginkgo.Entry("Mongo application CSI", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-csi.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Expand All @@ -360,7 +360,7 @@ var _ = ginkgo.Describe("Backup and restore tests", ginkgo.Ordered, func() {
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.XEntry("Mongo application RESTIC", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ginkgo.Entry("Mongo application RESTIC", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Expand All @@ -382,7 +382,7 @@ var _ = ginkgo.Describe("Backup and restore tests", ginkgo.Ordered, func() {
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.XEntry("Mongo application KOPIA", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ginkgo.Entry("Mongo application KOPIA", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Expand All @@ -404,7 +404,7 @@ var _ = ginkgo.Describe("Backup and restore tests", ginkgo.Ordered, func() {
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.XEntry("Mongo application DATAMOVER", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ginkgo.Entry("Mongo application DATAMOVER", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-csi.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Expand All @@ -426,7 +426,7 @@ var _ = ginkgo.Describe("Backup and restore tests", ginkgo.Ordered, func() {
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.XEntry("Mongo application BlockDevice DATAMOVER", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ginkgo.Entry("Mongo application BlockDevice DATAMOVER", ginkgo.FlakeAttempts(flakeAttempts), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent-block.yaml",
PvcSuffixName: "-block-mode",
BackupRestoreCase: BackupRestoreCase{
Expand All @@ -449,7 +449,7 @@ var _ = ginkgo.Describe("Backup and restore tests", ginkgo.Ordered, func() {
BackupTimeout: 20 * time.Minute,
},
}, nil),
ginkgo.XEntry("Mongo application Native-Snapshots", ginkgo.FlakeAttempts(flakeAttempts), ginkgo.Label("aws", "azure", "gcp"), ApplicationBackupRestoreCase{
ginkgo.Entry("Mongo application Native-Snapshots", ginkgo.FlakeAttempts(flakeAttempts), ginkgo.Label("aws", "azure", "gcp"), ApplicationBackupRestoreCase{
ApplicationTemplate: "./sample-applications/mongo-persistent/mongo-persistent.yaml",
BackupRestoreCase: BackupRestoreCase{
Namespace: "mongo-persistent",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ items:
# Used to format the block device (put filesystem on it).
# This allows Mongo to use the filesystem which lives on block device.
initContainers:
- image: docker.io/library/mongo:latest
- image: docker.io/library/mongo:7.0
securityContext:
privileged: true
name: setup-block-device
Expand Down Expand Up @@ -101,7 +101,7 @@ items:
- name: block-volume-pv
devicePath: /dev/xvdx
containers:
- image: docker.io/library/mongo:latest
- image: docker.io/library/mongo:7.0
name: mongo
securityContext:
privileged: true
Expand All @@ -116,8 +116,10 @@ items:
- containerPort: 27017
name: mongo
resources:
limits:
requests:
memory: 512Mi
limits:
memory: 1Gi
command:
- "sh"
- "-c"
Expand All @@ -130,11 +132,26 @@ items:
volumeDevices:
- name: block-volume-pv
devicePath: /dev/xvdx
livenessProbe:
tcpSocket:
port: mongo
initialDelaySeconds: 5
readinessProbe:
exec:
command:
- /bin/bash
- -c
- "mongosh --eval 'db.runCommand(\"ping\")' --quiet"
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
livenessProbe:
exec:
command:
- /bin/bash
- -c
- "mongosh --eval 'db.runCommand(\"ping\")' --quiet"
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 10
failureThreshold: 3
startupProbe:
exec:
command:
Expand All @@ -143,11 +160,11 @@ items:
- -u $(MONGO_INITDB_ROOT_USERNAME)
- -p $(MONGO_INITDB_ROOT_PASSWORD)
- --eval 'printjson(db.getCollectionNames())'
initialDelaySeconds: 5
periodSeconds: 30
timeoutSeconds: 2
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 40 # 40x30sec before restart pod
failureThreshold: 12 # 12x10sec = 2min before restart pod
- image: docker.io/curlimages/curl:8.5.0
name: curl-tool
command: ["/bin/sleep", "infinity"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ items:
spec:
serviceAccountName: mongo-persistent-sa
containers:
- image: docker.io/library/mongo:latest
- image: docker.io/library/mongo:7.0
name: mongo
securityContext:
privileged: true
Expand All @@ -82,16 +82,33 @@ items:
- containerPort: 27017
name: mongo
resources:
limits:
requests:
memory: 512Mi
limits:
memory: 1Gi
volumeMounts:
- name: mongo-data
mountPath: /data/db
livenessProbe:
tcpSocket:
port: mongo
initialDelaySeconds: 5
readinessProbe:
exec:
command:
- /bin/bash
- -c
- "mongosh --eval 'db.runCommand(\"ping\")' --quiet"
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
livenessProbe:
exec:
command:
- /bin/bash
- -c
- "mongosh --eval 'db.runCommand(\"ping\")' --quiet"
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 10
failureThreshold: 3
startupProbe:
exec:
command:
Expand All @@ -100,11 +117,11 @@ items:
- -u $(MONGO_INITDB_ROOT_USERNAME)
- -p $(MONGO_INITDB_ROOT_PASSWORD)
- --eval 'printjson(db.getCollectionNames())'
initialDelaySeconds: 5
periodSeconds: 30
timeoutSeconds: 2
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 40 # 40x30sec before restart pod
failureThreshold: 12 # 12x10sec = 2min before restart pod
- image: docker.io/curlimages/curl:8.5.0
name: curl-tool
command: ["/bin/sleep", "infinity"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ items:
spec:
serviceAccountName: mongo-persistent-sa
containers:
- image: docker.io/library/mongo:latest
- image: docker.io/library/mongo:7.0
name: mongo
securityContext:
privileged: true
Expand All @@ -95,16 +95,33 @@ items:
- containerPort: 27017
name: mongo
resources:
limits:
requests:
memory: 512Mi
limits:
memory: 1Gi
volumeMounts:
- name: mongo-data
mountPath: /data/db
livenessProbe:
tcpSocket:
port: mongo
initialDelaySeconds: 5
readinessProbe:
exec:
command:
- /bin/bash
- -c
- "mongosh --eval 'db.runCommand(\"ping\")' --quiet"
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
livenessProbe:
exec:
command:
- /bin/bash
- -c
- "mongosh --eval 'db.runCommand(\"ping\")' --quiet"
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 10
failureThreshold: 3
startupProbe:
exec:
command:
Expand All @@ -113,11 +130,11 @@ items:
- -u $(MONGO_INITDB_ROOT_USERNAME)
- -p $(MONGO_INITDB_ROOT_PASSWORD)
- --eval 'printjson(db.getCollectionNames())'
initialDelaySeconds: 5
periodSeconds: 30
timeoutSeconds: 2
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 40 # 40x30sec before restart pod
failureThreshold: 12 # 12x10sec = 2min before restart pod
- image: docker.io/curlimages/curl:8.5.0
name: curl-tool
command: ["/bin/sleep", "infinity"]
Expand Down