Skip to content

Commit

Permalink
fix: Mongo init depends on
Browse files Browse the repository at this point in the history
  • Loading branch information
mapeveri committed Mar 26, 2024
1 parent 136f1be commit 6de180a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .k8s/mongo1-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
creationTimestamp: null
labels:
name: mongo1-deployment
name: mongo1-statefulset
role: database
name: mongo1
spec:
Expand Down Expand Up @@ -49,7 +49,6 @@ spec:
- |
#!/bin/bash
echo "Mongo init"
sleep 30
mongosh --host mongo1:27017 <<EOF
cfg = {
"_id": "rs0",
Expand Down

0 comments on commit 6de180a

Please sign in to comment.