...
Create (if it's not available) DB schema (Mongo) in mgramseva namespace.
Create (if it's not available) DB schema (Mongo) in mgramseva namespace.
We can drop unused collections from iFix DB using below steps :
Connect to ifix namespace playground pod
kubectl exec -it playground<playground-5544676b78pod-r94w7 name> -n ifix -- /bin/bash
Connect to the particular mongo db
mongo --host <hostname>:27017 -u <username> -p <password>
Use db.
use <db_name>
Check the above mentioned collection name using below commands
db.getCollectionNames();
If above mentioned(highlighted in bold) collections are there then drop them off using below commands
db.departmentEntity.drop();
db.departmentHierarchyLevel.drop();
Steps to use Department Entity Service :
...
kubectl port-forward <pod-name> 8032:8080 -n mgramseva
5. Once the ifix-department-entity-service migrations complete using MongoDB Migration Doc v2.0 instructions. Please follow below steps to delete the ifix-department-entity-service .
Remove the ifix-department-entity-service's helm chart from "ifix" branch branch( https://github.com/misdwss/iFix-DevOps/tree/ifix/deploy-as-code/helm/charts/ifix-services/ifix-department-entity-service ).
Delete the service, deployment and ingress of ifix-department-entity-service
Code Block kubectl delete service ifix-department-entity-service -n ifix kubectl delete deployment ifix-department-entity-service -n ifix kubectl delete ingress ifix-department-entity-service -n ifix