Skip to content
Snippets Groups Projects

Resolve "Replace MongoDB Deployment with StatefulSet"

Open Jesus Galaz Reyes requested to merge 21-replace-mongodb-deployment-with-statefulset into main
  1. Dec 15, 2024
    • Jesus Galaz's avatar
      fix(mongodb): Migrate MongoDB to StatefulSet for Improved Data Persistence and Stability · 6fd4b269
      Jesus Galaz authored
      This MR updates the MongoDB deployment to use a StatefulSet instead of a Deployment. Key changes include:
      	1.	Replaced Deployment with StatefulSet for better handling of stateful workloads.
      	2.	Added volumeClaimTemplates for dynamic PVC provisioning, ensuring dedicated storage per pod.
      	3.	Updated the MongoDB service to a Headless Service to provide stable DNS for the StatefulSet pods.
      
      These changes ensure stable pod identities, reliable data persistence, and improved scalability for MongoDB.
      6fd4b269
Loading