Advanced Configurations

Helm Configurations

Project factory service is dependent on Kafka, Postgres, and Redis.

Project factory helm

Changes in the HELM:

  • Auto-generate user password:

1. Password Management

  • Auto-generate user password:

- name: USER_PASSWORD_AUTO_GENERATE
  value: "true"

Enables the system to generate a random password for new users.

  • Set a default user password:

- name: USER_DEFAULT_PASSWORD
  value: "eGov@123"

Specifies a default password to be used if auto-generation is disabled.

2. User duplication check

  • Skip user creation if a mobile number already exists:

- name: NOT_CREATE_USER_IF_ALREADY_THERE
  value: "true"

Prevents the creation of duplicate users by checking existing mobile numbers.

3. Tab naming for Readme and Sheets

  • Readme Tab Name:

- name: READ_ME_TAB
  value: "HCM_README_SHEETNAME"

Defines the sheet name to be used for the ReadMe tab.

  • Tab names for different data sheets:

- name: FACILITY_TAB_NAME
  value: "HCM_ADMIN_CONSOLE_FACILITIES"
- name: BOUNDARY_TAB_NAME
  value: "HCM_ADMIN_CONSOLE_BOUNDARY_DATA"
- name: USER_TAB_NAME
  value: "HCM_ADMIN_CONSOLE_USER_LIST"

Sets tab names for facilities, boundary data, and user lists in the HCM Console.

  1. Localisation and default locale

  • Set default locale:

- name: LOCALE
  value: {{ .Values.defaultLocale | default "en_IN" }}

Defines the default locale as "en_IN" unless overridden in the Helm values.

  • Localisation module:

- name: LOCALIZATION_MODULE
  value: "rainmaker-hcm-admin-schemas"

Specifies the localisation module used for HCM schemas.

5. Logging configuration

  • Set the application log level:

- name: APP_LOG_LEVEL
  value: {{ .Values.logLevel | default "info" }}

Determines the verbosity of logs, defaulting to 'info'.

  • Set maximum debug characters:

- name: APP_MAX_DEBUG_CHAR
  value: "{{ .Values.maxDebugChar | default "500" }}"

Limits the maximum length of debug logs to 500 characters unless overridden.

6. User mapping

  • Enables mapping of users via a common parent:

- name: MAP_USER_VIA_COMMON_PARENT
  value: "true"

Allows users to be linked based on a shared parent hierarchy.

7. Automatic retry mechanism

  • Retry when specific HTTP errors occur:

- name: AUTO_RETRY_IF_HTTP_ERROR
  value: "socket hang up"

Automatically retries operations if the "socket hang up" error occurs.

8. Localisation wait time in boundary creation

- name: LOCALIZATION_WAIT_TIME_IN_BOUNDARY_CREATION
  value: "30000"

Localisation wait time in boundary creation

9. Localisation chunk size

- name: LOCALIZATION_CHUNK_SIZE_FOR_BOUNDARY_CREATION
  value: "2000"

Localisation chunk size

  1. Service hosts

Host Name
ConfigMap Name
Key

KAFKA_BROKER_HOST

egov-config

kafka-brokers

EGOV_MDMS_HOST

egov-service-host

egov-mdms-service

EGOV_MDMS_V2_HOST

egov-service-host

mdms-service-v2

EGOV_FILESTORE_SERVICE_HOST

egov-service-host

egov-filestore

EGOV_IDGEN_HOST

egov-service-host

egov-idgen

EGOV_FACILITY_HOST

egov-service-host

facility

EGOV_BOUNDARY_HOST

egov-service-host

boundary-service

EGOV_PROJECT_HOST

egov-service-host

health-project

EGOV_USER_HOST

egov-service-host

egov-user

EGOV_PRODUCT_HOST

egov-service-host

product

EGOV_HRMS_HOST

egov-service-host

health-hrms

EGOV_LOCALIZATION_HOST

egov-service-host

egov-localization

EGOV_HEALTH_INDIVIDUAL_HOST

egov-service-host

health-individual

EGOV_AUDIT_HOST

egov-service-host

audit-service

EGOV_PLAN_SERVICE_HOST

egov-service-host

plan-service

EGOV_CENSUS_HOST

egov-service-host

census-service

  1. Service endpoints

Path Name
Value

FILE_STORE_SERVICE_END_POINT

filestore/v1/files

EGOV_MDMS_V2_SEARCH_ENDPOINT

mdms-v2/v2/_search

EGOV_MDMS_V1_SEARCH_ENDPOINT

mdms-v2/v1/_search

EGOV_IDGEN_PATH

egov-idgen/id/_generate

EGOV_MDMS_SCHEMA_PATH

mdms-v2/schema/v1/_search

EGOV_BOUNDARY_RELATIONSHIP_SEARCHPATH

boundary-service/boundary-relationships/_search

EGOV_BOUNDARY_SERVICE_SEARCHPATH

boundary-service/boundary/_search

EGOV_BOUNDARY_HIERARCHY_SEARCHPATH

boundary-service/boundary-hierarchy-definition/_search

HEALTH_PROJECT_CREATE_PATH

health-project/v1/_create

EGOV_PROJECT_STAFF_CREATE_PATH

health-project/staff/v1/_create

EGOV_PROJECT_RESOURCE_CREATE_PATH

health-project/resource/v1/_create

EGOV_PROJECT_RESOURCE_FACILITY_PATH

health-project/facility/v1/_create

EGOV_USER_SEARCH_PATH

user/_search

EGOV_FACILITY_SEARCH_PATH

facility/v1/_search

EGOV_PRODUCT_VARIANT_SEARCH_PATH

product/variant/v1/_search

EGOV_BOUNDARY_ENTITY_SEARCHPATH

boundary-service/boundary/_search

EGOV_FACILITY_BULK_CREATE

facility/v1/bulk/_create

EGOV_HEALTH_INDIVIDUAL_SEARCH

health-individual/v1/_search

EGOV_PLAN_FACILITY_SEARCH

plan-service/plan/facility/_search

EGOV_PLAN_FACILITY_CONFIG_SEARCH

plan-service/config/_search

EGOV_CENSUS_SEARCH

census-service/_search

EGOV_PLAN_SEARCH

plan-service/plan/_search

  1. Kafka topics

Topic Name
Value

KAFKA_SAVE_CAMPAIGN_DETAILS_TOPIC

save-campaign-details

KAFKA_UPDATE_CAMPAIGN_DETAILS_TOPIC

update-campaign-details

  1. Database configuration information

The configuration snippet provides the details required to set up and connect to a database, including environment-specific handling, credentials, schema information, and other related settings. Below is a structured breakdown:

Database Connection Information -

Parameter Name
Value / Source
Description

DB_URL

health-db-url or db-url from egov-config

URL for connecting to the database. Uses health-db-url in the "health" namespace, else db-url.

DB_HOST

db-host from egov-config

Hostname or IP address of the database server.

DB_PORT

"5432"

Port number for database connection (default PostgreSQL port).

DB_NAME

db-name from egov-config

Name of the database being connected to.

DB_SCHEMA

Namespace value or "public"

Specifies the schema within the database. Defaults to "public" if no namespace is provided.

DB_USER

username from db secret

Database username used for authentication.

DB_PASSWORD

password from db secret

Database password for authentication.

  1. Flyway Migration Information

Parameter Name
Value / Source
Description

FLYWAY_USER

flyway-username from db secret

User for running flyway migrations.

FLYWAY_PASSWORD

flyway-password from db secret

Password for flyway migration user.

FLYWAY_LOCATIONS

flyway-locations from egov-config

Directory or path for flyway migration scripts.

SCHEMA_TABLE

schemaTable from initContainers.dbMigration

Table name for tracking Flyway migrations.

Notes:

  • ConfigMap and Secrets Integration: Sensitive data like DB_USER, DB_PASSWORD, and Flyway credentials are securely retrieved from Kubernetes secrets (db secret). Non-sensitive configurations like DB_HOST and DB_NAME are stored in ConfigMaps (egov-config).

  • Namespace-Specific Configuration: The DB_URL and DB_SCHEMA are tailored for specific namespaces. For example, the 'health' namespace uses a dedicated health-db-url key and the namespace value for the schema.

  • Default Settings: Where applicable, defaults are provided. For instance, the schema defaults to "public" and the port defaults to 5432.

These configurations enhance the flexibility and usability of the Project Factory Service, ensuring smoother operations and better alignment with user needs.

Last updated

Was this helpful?