Skip to content

Commit

Permalink
added liveness probe commands to use mongo instead of mongosh (#91)
Browse files Browse the repository at this point in the history
* added liveness probe commands to use mongo instead of mongosh as liveness probe command

* added readiness probe, and modified to custom readiness/liveness probe

* ignoring default liveness/readiness probes so that custom ones are picked up, as per the mongodb bitmani values.yaml file
  • Loading branch information
rosesyrett authored Oct 18, 2022
1 parent 7fd9d25 commit e82143b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions helm/diffcalc-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,34 @@ mongodb:
persistence:
existingClaim: diffcalc-mongo-volume
createNew: false
livenessProbe:
enabled: false
readinessProbe:
enabled: false
customLivenessProbe:
exec:
command:
- mongo
- --disableImplicitSessions
- --eval
- "db.adminCommand('ping')"
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6
customReadinessProbe:
exec:
command:
- mongo
- --disableImplicitSessions
- --eval
- "db.adminCommand('ping')"
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6

logging:
level: "WARN"
Expand Down

0 comments on commit e82143b

Please sign in to comment.