Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 1.71 KB

README.md

File metadata and controls

73 lines (52 loc) · 1.71 KB

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