All components in Sunbird Obsrv can be installed through automation scripts. The automation scripts require Ansible as a prerequisite. Some of the components also require the de-facto package manager for Kubernetes, helm as a prerequisite to run the component on Kubernetes.
The Sunbird Obsrv Telemetry service can be deployed onto Kubernetes using the helm chart. The deployment is handled using Ansible to manage the configuration and the commands that are necessary. The deployments can also be integrated into Jenkins, a popular CI/CD tool. The Telemetry Service deployment also has the capability of configurable horizontal scaling using the Horizontal Pod Scaling (HPA) concept of Kubernetes. A sample command to deploy the telemetry service on Kubernetes is provided below.
sunbird-devops/kubernetes/helm_charts/core/telemetry at release-4.8.0 · project-sunbird/sunbird-devops
Telemetry Service helm chart
Sunbird Obsrv Data Pipeline consists of a series of real-time streaming jobs chained together to unzip, transform and enrich the telemetry data. We use ansible and helm charts to deploy the series of jobs. The list of jobs that need to be deployed and their configurations can be controlled by the ansible defaults configuration.
sunbird-data-pipeline/kubernetes/ansible/roles/flink-jobs-deploy at release-4.8.0 · project-sunbird/sunbird-data-pipeline
Ansible role for Data Pipeline
Sunbird Obsrv uses the following list of fields to de-normalize the user metadata. These fields are obtained by calling the user-read api belonging to Sunbird Lern building block. The de-normalization job can be modified to read the user metadata from a service/api of the adopter's choice.
The Data Service is a collection of data exhaust and report apis. The Data Service can be installed on Kubernetes using Ansible and Helm. A sample command to install the service is provided below. All the required configuration is managed using the ansible configuration.