Skip to content

Commit e82143b

Browse files
authored
added liveness probe commands to use mongo instead of mongosh (#91)
* 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
1 parent 7fd9d25 commit e82143b

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

helm/diffcalc-api/values.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,34 @@ mongodb:
103103
persistence:
104104
existingClaim: diffcalc-mongo-volume
105105
createNew: false
106+
livenessProbe:
107+
enabled: false
108+
readinessProbe:
109+
enabled: false
110+
customLivenessProbe:
111+
exec:
112+
command:
113+
- mongo
114+
- --disableImplicitSessions
115+
- --eval
116+
- "db.adminCommand('ping')"
117+
initialDelaySeconds: 30
118+
periodSeconds: 10
119+
timeoutSeconds: 5
120+
successThreshold: 1
121+
failureThreshold: 6
122+
customReadinessProbe:
123+
exec:
124+
command:
125+
- mongo
126+
- --disableImplicitSessions
127+
- --eval
128+
- "db.adminCommand('ping')"
129+
initialDelaySeconds: 30
130+
periodSeconds: 10
131+
timeoutSeconds: 5
132+
successThreshold: 1
133+
failureThreshold: 6
106134

107135
logging:
108136
level: "WARN"

0 commit comments

Comments
 (0)