Setup Requirements

An overview of the prerequisites to setup DIGIT and some of the key capabilities to understand before provisioning the infra and deploy DIGIT.

Overview

DIGIT is the largest urban governance platform built for billions and billions of transactions between citizens and the state govt through various municipal services/integration. The platform is built with key capabilities like scale, speed, integration, configurable, customizable, extendable, multi-tenanted, security, etc. Here, we shall discuss the key requirements and capabilities.

Prerequisites

Before proceeding to set up DIGIT, it is essential to know some of the key technical details about DIGIT, like architecture, tech stack, how it is packaged and deployed on various infrastructure. Some of these details are explained in the previous sections. Below are some of the key capabilities to know about DIGIT as a platform.

  1. DIGIT is a collection of various services built as RESTFul APIs with OpenAPI standard

  2. DIGIT is built as MSA (Microservices Architecture)

  3. DIGIT Services are Packaged as containers and Deployed as Docker Images.

  4. DIGIT is deployed on Kubernetes which abstracts any Cloud/Infra suitable and standardised for DIGIT deployment.

  5. DIGIT Deployment configuration, customization is done through Helm Charts.

  6. Kubernetes cluster setup is done through code like terraform/ansible suitably.

The OpenAPI Specification (OAS) defines a standard, programming language-agnostic interface description for REST APIs, which allows both humans and computers to discover and understand the capabilities of a service without requiring access to source code, additional documentation, or inspection of network traffic. When properly defined via OpenAPI, a consumer can understand and interact with the remote service with a minimal amount of implementation logic. Similar to what interface descriptions have done for lower-level programming, the OpenAPI Specification removes guesswork in calling a service.

Microservices are nothing but breaking big beast into smaller units that can independently be developed, enhanced and scaled as a categorized and layered stack that gives better control over each component of an application that exists in its own container, independently managed and updated. This means that developers can build applications from multiple components and program each component in the language best suited to its function, rather than having to choose a single less-than-ideal language to use for everything. Optimizing software all the way down to the components of the application helps you increase the quality of your products. No time and resources are wasted managing the effects updating one application have on another.

Comparatively the best infra choice for running a microservices application architecture is application containers. Containers encapsulate a lightweight runtime environment for the application, presenting a consistent environment that can follow the application from the developer's desktop to testing to final production deployment, and you can run containers on cloud infra with physical or virtual machines.

As most modern software developers can attest, containers have provided us with dramatically more flexibility for running cloud-native applications on physical and virtual infrastructure. Kubernetes allows you to deploy cloud-native applications anywhere and manage them exactly as you like everywhere. For more details refer to the above link that explains various advantages of Kubernetes.

Kubernetes, the popular container orchestration system, is used extensively. However, it can become complex: you have to handle all of the objects (ConfigMaps, pods, etc.), and would also have to manage the releases. Both can be accomplished with Kubernetes Helm. It is a Kubernetes package manager designed to easily package, configure, and deploy applications and services onto Kubernetes clusters in a standard way, this helps the ecosystem to adopt the standard way of deployment and customization.

For being successful in the DIGIT Setup, here are certain requirements that need to be ascertained:

Skills Needed

DevOps

Scheduled Job Handling

API Gateway

Container Management

Resource and Storage Handling

Fault Tolerance

Load Balancing

Distributed Metrics

Application Runtime and Packaging

App Deployment

Configuration Management

Service Discovery

CI / CD

Virtualization

Hardware & Storage

OS & Networking

SSL Configuration

Infra-as-code

Dockers

DNS Configuration

GitOps

SecOps

  • On-premise/private cloud accounts

    • Interface to access and provision required infra

    • In the case of SDC, NIC or private DC, it'll be VPN to an allocated VLAN

    • SSH access to the VMs/machines

  • Infra Skills

    • Public cloud

      • Managed Kubernetes service like AKS or EKS or GKE on Azure, AWS and GCP respectively

    • Private Clouds (SDC, NIC)

      • Clouds like VMware, OpenStack, Nutanix and more, may or may not have Kubernetes as a managed service. If yes we may have to estimate only the worker nodes depending on the number of ULBs and DIGIT's municipal services that you opt.

      • In the absence of the above, you have to provision Kubernetes cluster from the plain VMs as per the general Kubernetes setup instruction and add worker nodes.

  • Operations Skills

    • Understanding of Linux, containers, VM Instances, Load Balancers, Security Groups/Firewalls, Nginx, DB Instance, Data Volumes

    • Experience of Kubernetes, Docker, Jenkins, Helm, Infra-as-code, Terraform

    • Experience in DevOps/SRE practice on Microservices and modern infrastructure

High-level Action To Deploy DIGIT

  1. Setting up the persistent disk volumes to attach to DIGIT backbone stateful containers like

    • ZooKeeper

    • Kafka

    • Elastic Search

  2. Setting up the Postgres DB

    • On a public cloud, provision a Postgres RDS like instance.

    • Private cloud, provision a Postgres DB on a VM with the backup, HA/DRS

  3. Preparing Deployment configuration for required DIGIT services using Helm Templates from the InfraOps like the following

    • Preparing DIGIT Service helm templates to deploy on Kubernetes cluster

    • K8s Secrets

    • K8s ConfigMaps

    • Environment variables of each microservices

  4. Deploy the stable released version of DIGIT and Required services

  5. Setting up Jenkins Job to build, bake images and deploy the components for the rolling updates

Last updated

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