Quickstart/Local Setup

mGramSeva Quickstart, this is not for a production

Quickstart Installation helps you jump start with the mGramSeva basic installation steps with the limited functionalities.‌

mGramSeva is a distributed microservice-based platform that comprises many services which are containerized, depending upon the required features we can run only those services on any container supported orchestration platform like docker compose, Kubernetes, etc.‌

Here in this Quickstart guide we'll install basic services to get the platform up, before we setup mGramSeva, we'll create a lightweight Kubernetes cluster called k3darrow-up-right on a local machine with specified H/W requirement. The H/W requirements are listed below to ensure before we proceed further.‌

1. Infra Setup

To provision a lightweight Kubernetes cluster, please follow the instructions below in context to your OS and install the k3d on your machine.

H/W or VM Size

  • min 4 vCPUs (recommended 8)

  • min 8GiB of RAM (recommended 16)

  • min 30GiB of HDD (recommended 30+)

Tools

Infra (Kubernetes Cluster) Creation

Once the above prerequisites are met, run the following tasks depending upon your OS.

  • **login/ssh into the machine, go to terminal/command prompt and run the following commands as an admin user.

  • Create /Kube directory and change permission. To use this directory for persistent data mount. This means all the container logs, data will be stored here.

  • Create a cluster with a single master node and 2 agents (Worker Nodes) and mount the pre-created directory (for data persistence).

  • When cluster creation is successful, Get the kubeconfig file, which will allow you to connect the to the cluster at any time.

  • Verify the Cluster creation by running the following commands from your local machine where the kubectl is installed. It gives you the sample output as below

  • You can verify the workers' nodes created by using the following command.

If the above steps are completed successfully, your Cluster is now up and running ready to proceed with the DIGIT Deployment.‌

2. mGramSeva Setup

Now that we have the Infra setup to proceed with the DIGIT Deployment. Following are the tools that need to be installed on the machine before proceeding with the DIGIT Services deployment.‌

What we'll deploy in Quickstart:

  • mGramSeva core platform services

Prerequisites

  1. mGramSeva uses golangarrow-up-right (required v1.13.3) automated scripts to deploy the builds on to Kubernetes - Linuxarrow-up-right or Windowsarrow-up-right or Macarrow-up-right

  2. All mGramSeva services are packaged using helm charts Installing Helmarrow-up-right

  3. kubectlarrow-up-right is a CLI to connect to the kubernetes cluster from your machine

  4. Install CURLarrow-up-right for making api calls

  5. Install Visualstudioarrow-up-right IDE Code for better code/configuration editing capabilities

  6. All the mGramSeva services deployment configurations are in GitRepoarrow-up-right which you would need to install gitarrow-up-right and then git clonearrow-up-right it to your local.

  7. Install Postmanarrow-up-right to run some digit bootstrap scripts

  1. After cloning the repo CD into the folder iFix-DevOps and type the "code ." command that will open the visual editor and opens all the files from the repo iFix-DevOps

  1. Have look at the sample deployment configarrow-up-right file that needs to be configured as per any specific values according to your needs. (For a quick start you can run as it is)

  1. Add the following entries in your host file /etc/hosts depending on your OS, instructions can be found herearrow-up-right.

Deployment

Once all the prerequisites set up is complete, go to the following repo, run the command and follow the instructions.

You can now test the Digit application status in command prompt/terminal by using the below command.

Last updated

Was this helpful?