Why do we need liveness probe for MongoDB with command db.adminCommand('ping')
?
I mean, is there any scenario the main process of Mongo doesn't exit but still mongo doesn't function? Because kubelet automatically restarts container if the main process exits.
Asked
Active
Viewed 824 times
0

Vasu Youth
- 323
- 3
- 13
-
https://stackoverflow.com/a/70075319/2777988 – Rakesh Gupta Oct 23 '22 at 00:01