Deploy from your local machine

The 2 Stages

Essentially, there are 2 stages that should allow you to use the full potential of DeploymentConfig and pipeline-as-code.

Stage 1: Clone the DevOps repo, choose your iFix product branch

Prepare an <env.yaml> master config file, you can name this file as you wish which will have the following configurations, this env file needs to be in line with your cluster name.

  • each service global, local env variables

  • credentials, secrets (You need to encrypt using sops and create a <env>-secret.yaml separately)

  • Number of replicas/scale of individual services (Depending on whether dev or prod)

  • mdms, config repos (Master Data, ULB, Tenant details, Users, etc)

  • sms g/w, email g/w, payment g/w

  • GMap key (In case you are using Google Map services in your PGR, PT, TL, etc)

  • S3 Bucket for Filestore

  • URL/DNS on which the DIGIT will be exposed

  • SSL Certificate for the above URL

  • End-points configs (Internal/external)

Stage 2: Run the ifix_setup deployment script and simply answer the questions that it asks

cd iFix-DevOps/deploy-as-code/egov-deployer

go run ifix_setup.go

#Be prepared for the following questions
1. Do you have the Kubernetes Setup?
2. Provide the path of the intented env kubeconfig file
3. Which version of the DIGIT that you want to install
4. What iFix Modules that you choose to install (Choose Program, Digit Exchange)
5. All, done, Now do you want to preview the deployment manifests 
6. Are you good to proceed with the DIGIT Installation

All Done.Essentially, DIGIT deployment means that we need to generate Kubernetes manifests for each individual service. We use the tool called helm, which is an easy, effective and customizable packaging and deployment solution. So depending on where and which env you initiate the deployment there are 2 modes that you can deploy.

Last updated

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