Infrastructure Setup

Choose your infra type and provision the necessary infra before you actually deploy the services

Introduction

iFix/mGramSeva is microservices based distributed cloud-native application, it contains many microservices that together in order work for the scale and speed. Each of this context specific microservices are dockerized and deployed on a kubernetes infrastructure.

Pre-reads

It is essential to understand some of the key concepts, benefits and best practices of kubernetes platform before we understand the deployment of the iFix/mGramSeva.

1. Choose the Install Type

Choose you target infra type and follow the Instruction to setup a Kubernetes cluster before moving on to the Deployment.

Quickstart/Local SetupOn AWSOn Azure

2. Deployment

Before we begin the deployment, it is important to understand the deployment architecture that starts from the source code to production ready. Deploying and managing Kubernetes have emerged as a streamlined way to deploy containers in the Cloud Infrastructure. When running Kubernetes at scale, managing, operating, and scaling its infrastructure to maximize cluster utilization — without suffering from idle resources — can be a big challenge. There are too many your development team needs to manage and configure. This includes selecting the best instance type and size, determining when to scale up or down, and making sure all of the containers are scheduled and running on the best instances — and that is even before starting to think about cost resource optimization.

The simplest way to get started with the deployment process is to manage deployment configuration as code. Each service deployment configuration is defined as Helm charts and deployed into the Kubernetes cluster. We can collocate the deployment-as-code as source code, leveraging all the benefits of source control including change tracking and branching, then package it. So below is the source code repo that contains all the deployment-as-code for iFix.

1. mGramSeva Installation

Deploy Services

2. iFix-adapter Installation

Installation

3. iFix Ref Dashboard Installation

Installation

3. Destroy the Setup

Finally, cleanup the cluster Setup if you wish, using the following command. This will delete the entire cluster and other cloud resources that were provisioned for the mGramSeva Infra Setup.

cd iFix-DevOps/infra-as-code/terraform/my-iFix-eksterraformdestroy​

Conclusion

All Done, we have successfully Created infra on Local, Cloud, Deployed iFix into kubernetes cluster.

Last updated

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.