Skip to content

Manifest Files for Deployting ERP-Backend to EKS Cluster with MongoDB StateFulSets and Replication

Notifications You must be signed in to change notification settings

harshau007/erp-eks-manifests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERP-Cloud on Amazon EKS

Before Starting Create Necessary Roles

Setting Up ERP

1. Create Cluster with created Amazon EKS cluster IAM role

2. Add Node Group with created Amazon EKS cluster node IAM role

3. Add 3 Nodes in Node Group

4. Update kubeconfig

aws eks update-kubeconfig --name <cluster-name>

5. Add Amazon EBS CSI Driver Add-On ( Follow StackOverflow )

6. Check ebs-csi-driver is running in kube-system namespace

kubectl get pods -n kube-system

7. Apply Configs Sequentially

8. Wait for DB to Setup

watch kubectl get all

9. Exec into Primary DB ( find it if you can't )

kubectl exec -it mongodb-0 -- mongosh

10. Add new user to erp db

use admin # Change DB to admin

db.auth('<your-username-from-mongodb.yaml>', '<your-password-from-mongodb.yaml>') # auth 

use erp # Change DB to erp

db.createUser({ user: "<new-user>", pwd: "<new-pass>", roles: ["readWrite", "dbAdmin"] }) # Create user in erp db

db.testcol.insertOne({}) # Dummy Insert on erp

exit

11. Test Login with new user

kubectl exec -it mongodb-0 -- /bin/bash
mongosh mongodb://<new-user>:<new-pass>@mongodb-0.mongodb-svc.default.svc.cluster.local:27017/erp?readPreference=nearest

12. If Success, Apply Backend or else find issue

Apply Backend (Using kustomize)

For Dev

kubectl apply -k 6-Backend/dev

For Prod

kubectl apply -k 6-Backend/prod

About

Manifest Files for Deployting ERP-Backend to EKS Cluster with MongoDB StateFulSets and Replication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published