2.8 KiB
Disable Demo MongoDB
Goal
Temporarily exclude MongoDB from the default demo infrastructure deployment and remove the existing MongoDB workload and test data from the current demo cluster.
Repository Design
- Remove only the
mongoitem fromsharedDatastoresinenvironments/demo/infra-values.yaml. - Keep
sharedInfra.mongoconnection settings unchanged so MongoDB can be restored by adding the datastore item back. - Do not modify the reusable
mixingx-infraHelm chart. - Do not modify Redis or RabbitMQ datastore entries.
- Keep the Audit Application disabled under
applications/demo/disabled/audit.yaml.
The Infra chart renders one StatefulSet and Service for every sharedDatastores item. Removing the demo MongoDB item therefore excludes mongo-statefulset and mongo-service from newly rendered demo manifests without introducing a new chart-level feature.
GitOps Flow
- Validate the updated demo values with Helm lint and template rendering.
- Commit and push the
mixingx.deploymasterbranch. - Update the
mixingx.hubmixingx-deploysubmodule pointer ondevelop/v.1.0.1and push it.
The mixingx-infra Argo CD Application does not enable automated synchronization or pruning. Repository changes prevent MongoDB from being included in future default renders, but current cluster resources require an explicit cleanup operation.
Current Cluster Cleanup
Target the demo cluster on 192.168.1.173, namespace mixingx.
Before deletion, inspect and record the exact MongoDB StatefulSet, Service, PVC, PV, StorageClass, and reclaim policy. Then delete only:
- StatefulSet
mongo-statefulset - Service
mongo-service - PVC
data-mongo-statefulset-0
The PVC contains test data and does not need to be retained. If its PV reclaim policy is Delete, verify that the associated PV and Longhorn volume are removed. If automatic reclamation does not complete, stop and report the remaining storage object before any additional deletion.
Do not delete the Infra Argo CD Application, Redis, RabbitMQ, their PVCs, or any unrelated Longhorn volume.
Verification
- Helm output contains no
mongo-statefulsetormongo-service. - Helm output still contains the Redis and RabbitMQ StatefulSets and Services.
- The pushed deploy repository contains the values change and the Hub repository points to that deploy commit.
- The current cluster contains no MongoDB StatefulSet, Service, Pod, or PVC in namespace
mixingx. - Redis and RabbitMQ remain ready after cleanup.
- Audit remains excluded from the default demo Application manifests.
Restore Procedure
To restore MongoDB later, re-add the original mongo item to sharedDatastores, commit and push the deploy repository, update the Hub submodule pointer, and synchronize the Infra Argo CD Application. A new empty PVC will be created because the previous test-data PVC is intentionally deleted.