eGov Service Integration - Continuous integration & Deployment
...
This file contains the below details which are used for creating the automated Jenkins pipeline job for your newly created service.
# config:
# - name: < Name of the job, foo/bar would create job named bar inside folder foo >
# build:
# - work-dir: < Working directory of the app to be built >
# dockerfile: < Path to the dockerfile, optional, assumes dockerfile in working directory if not provided>
# image-name: < Docker image name >
While integrating a new service/app, the above content needs to be added in the build-config.yml file of that app repository.
For example: If we are on-boarding a new service called egov-test, then the build-config.yml should be added as mentioned below.
...
The services deployed and managed on a Kubernetes cluster in cloud platforms like AWS, Azure, GCP, OpenStack, etc.
Here, we use helm charts to manage and generate the Kubernetes manifest files and use them for further deployment to respective Kubernetes cluster.
Each service is created as charts which will have the below-mentioned files in it.
For Eg:
billing-service/ # Directory – name of the service/app
Chart.yaml # A YAML file containing information about the chart
LICENSE # OPTIONAL: A plain text file containing the license for the chart
README.md # OPTIONAL: A human-readable README file
values.yaml # The default configuration values for this chart
templates/ # A directory of templates that, when combined with values, will generate valid Kubernetes manifest files.
To deploy a new service, we need to create the helm chart for it. The chart should be created under the charts/helm directory in eGov-infraOps repository.
Github repository URL: https://github.com/egovernments/eGov-infraOps OR https://github.com/egovernments/Train-InfraOps
We have an automatic helm chart generator utility which needs to be installed on local machine, the utility will prompt for user inputs about the newly developed service( app specifications) for creating the helm chart.
The requested chart with the configuration values (created based on the inputs provided) will be created for the user.
...