From 0f1d55ff2c522692887c1bdfc041a94459178598 Mon Sep 17 00:00:00 2001 From: Harish-egov Date: Thu, 28 Dec 2023 20:01:39 +0530 Subject: [PATCH] updated new helm charts for health services --- .../health-attendance/Chart.yaml | 26 ++ .../templates/deployment.yaml | 2 + .../health-attendance/templates/ingress.yaml | 2 + .../health-attendance/templates/service.yaml | 2 + .../health-attendance/values.yaml | 128 +++++++++ .../health-individual/Chart.yaml | 26 ++ .../templates/deployment.yaml | 2 + .../health-individual/templates/ingress.yaml | 2 + .../health-individual/templates/service.yaml | 2 + .../health-individual/values.yaml | 157 +++++++++++ .../health-pgr-services/Chart.yaml | 26 ++ .../templates/deployment.yaml | 2 + .../templates/ingress.yaml | 2 + .../templates/service.yaml | 2 + .../health-pgr-services/values.yaml | 172 ++++++++++++ .../health-services/health-project/Chart.yaml | 26 ++ .../health-project/templates/deployment.yaml | 2 + .../health-project/templates/ingress.yaml | 2 + .../health-project/templates/service.yaml | 2 + .../health-project/values.yaml | 248 ++++++++++++++++++ .../helm/environments/unified-health-dev.yaml | 1 + .../helm/environments/unified-health-qa.yaml | 1 + .../helm/environments/unified-health-uat.yaml | 1 + 23 files changed, 836 insertions(+) create mode 100644 deploy-as-code/helm/charts/health-services/health-attendance/Chart.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-attendance/templates/deployment.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-attendance/templates/ingress.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-attendance/templates/service.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-attendance/values.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-individual/Chart.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-individual/templates/deployment.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-individual/templates/ingress.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-individual/templates/service.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-individual/values.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-pgr-services/Chart.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-pgr-services/templates/deployment.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-pgr-services/templates/ingress.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-pgr-services/templates/service.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-pgr-services/values.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-project/Chart.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-project/templates/deployment.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-project/templates/ingress.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-project/templates/service.yaml create mode 100644 deploy-as-code/helm/charts/health-services/health-project/values.yaml diff --git a/deploy-as-code/helm/charts/health-services/health-attendance/Chart.yaml b/deploy-as-code/helm/charts/health-services/health-attendance/Chart.yaml new file mode 100644 index 0000000000..df77fa831c --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-attendance/Chart.yaml @@ -0,0 +1,26 @@ +apiVersion: v2 +name: health-attendance +description: A Helm chart for Kubernetes + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +version: 0.1.1 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. +appVersion: 1.16.0 + +dependencies: +- name: common + version: 0.0.5 + repository: file://../../../common diff --git a/deploy-as-code/helm/charts/health-services/health-attendance/templates/deployment.yaml b/deploy-as-code/helm/charts/health-services/health-attendance/templates/deployment.yaml new file mode 100644 index 0000000000..3455c00058 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-attendance/templates/deployment.yaml @@ -0,0 +1,2 @@ +# deployment.yaml +{{- template "common.deployment" . -}} \ No newline at end of file diff --git a/deploy-as-code/helm/charts/health-services/health-attendance/templates/ingress.yaml b/deploy-as-code/helm/charts/health-services/health-attendance/templates/ingress.yaml new file mode 100644 index 0000000000..9a573c0d7d --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-attendance/templates/ingress.yaml @@ -0,0 +1,2 @@ +# ingress.yaml +{{- template "common.ingress" . -}} \ No newline at end of file diff --git a/deploy-as-code/helm/charts/health-services/health-attendance/templates/service.yaml b/deploy-as-code/helm/charts/health-services/health-attendance/templates/service.yaml new file mode 100644 index 0000000000..7356445764 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-attendance/templates/service.yaml @@ -0,0 +1,2 @@ +# service.yaml +{{- template "common.service" . -}} \ No newline at end of file diff --git a/deploy-as-code/helm/charts/health-services/health-attendance/values.yaml b/deploy-as-code/helm/charts/health-services/health-attendance/values.yaml new file mode 100644 index 0000000000..7caf19d53b --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-attendance/values.yaml @@ -0,0 +1,128 @@ +# Common Labels +labels: + app: "health-attendance" + group: "digit-works" + +namespace: health + +# Ingress Configs +ingress: + namespace: egov + enabled: true + zuul: true + context: "attendance" + +# Init Containers Configs +initContainers: + dbMigration: + enabled: true + schemaTable: "attendance_schema" + image: + repository: "health-attendance-db" + +# Container Configs +image: + repository: "health-attendance" +replicas: "1" +healthChecks: + enabled: true + livenessProbePath: "/health-attendance/health" + readinessProbePath: "/health-attendance/health" +appType: "java-spring" +tracing-enabled: true +heap: "-Xmx192m -Xms192m" +java-args: "" + +# Additional Container Envs +env: | + - name: SERVER_PORT + value: "8080" + - name: SERVER_SERVLET_CONTEXT_PATH + value: "/health-attendance" + - name: JAVA_OPTS + value: {{ index .Values "heap" | quote }} + - name: JAVA_ARGS + value: {{ index .Values "java-args" | quote }} + {{- if index .Values "tracing-enabled" }} + - name: TRACER_OPENTRACING_ENABLED + value: "true" + {{- end }} + - name: SERVER_CONTEXT_PATH + value: /attendance + - name: SERVER_SERVLET_CONTEXT-PATH + value: /attendance + - name: EGOV_MDMS_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-mdms-service + - name: WORKS_INDIVIDUAL_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: individual + {{- if index .Values "java-enable-debug" }} + - name: JAVA_ENABLE_DEBUG + value: "true" + {{- end }} + - name: EGOV_IDGEN_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-idgen + - name: ATTENDANCE_LOG_KAFKA_CREATE_TOPIC + value: "save-attendance-log" + - name: ATTENDANCE_LOG_KAFKA_UPDATE_TOPIC + value: "update-attendance-log" + - name: ATTENDANCE_REGISTER_KAFKA_CREATE_TOPIC + value: "save-attendance" + - name: ATTENDANCE_REGISTER_KAFKA_UPDATE_TOPIC + value: "update-attendance" + - name: ATTENDANCE_STAFF_KAFKA_CREATE_TOPIC + value: "save-staff" + - name: ATTENDANCE_STAFF_KAFKA_UPDATE_TOPIC + value: "update-staff" + - name: ATTENDANCE_ATTENDEE_KAFKA_CREATE_TOPIC + value: "save-attendee" + - name: ATTENDANCE_ATTENDEE_KAFKA_UPDATE_TOPIC + value: "update-attendee" + {{- if index .Values "attendance-register-default-offset" }} + - name: ATTENDANCE_REGISTER_DEFAULT_OFFSET + value: {{ index .Values "attendance-register-default-offset" | quote }} + {{- end }} + {{- if index .Values "attendance-register-default-limit" }} + - name: ATTENDANCE_REGISTER_DEFAULT_LIMIT + value: {{ index .Values "attendance-register-default-limit" | quote }} + {{- end }} + {{- if index .Values "attendance-register-search-max-limit" }} + - name: ATTENDANCE_REGISTER_SEARCH_MAX_LIMIT + value: {{ index .Values "attendance-register-search-max-limit" | quote }} + {{- end }} + {{- if index .Values "attendance-individual-service-integration-required" }} + - name: ATTENDANCE_INDIVIDUAL_SERVICE_INTEGRATION_REQUIRED + value: {{ index .Values "attendance-individual-service-integration-required" | quote }} + {{- end }} + {{- if index .Values "attendance-staff-service-integration-required" }} + - name: ATTENDANCE_STAFF_SERVICE_INTEGRATION_REQUIRED + value: {{ index .Values "attendance-staff-service-integration-required" | quote }} + {{- end }} + {{- if index .Values "attendance-document-id-verification-required" }} + - name: ATTENDANCE_DOCUMENT_ID_VERIFICATION_REQUIRED + value: {{ index .Values "attendance-document-id-verification-required" | quote }} + {{- end }} + {{- if index .Values "attendance-register-open-search-enabled-roles" }} + - name: ATTENDANCE_REGISTER_OPEN_SEARCH_ENABLED_ROLES + value: {{ index .Values "attendance-register-open-search-enabled-roles" | quote }} + {{- end }} + {{- if index .Values "works-individual-search-endpoint" }} + - name: WORKS_INDIVIDUAL_SEARCH_ENDPOINT + value: {{ index .Values "works-individual-search-endpoint" | quote }} + {{- end }} + {{- if index .Values "organisation-contact-details-update-topic" }} + - name: ORGANISATION_CONTACT_DETAILS_UPDATE_TOPIC + value: {{ index .Values "organisation-contact-details-update-topic" | quote }} + {{- end }} + {{- if index .Values "contracts-revision-topic" }} + - name: CONTRACTS_REVISION_TOPIC + value: {{ index .Values "contracts-revision-topic" | quote }} + {{- end }} \ No newline at end of file diff --git a/deploy-as-code/helm/charts/health-services/health-individual/Chart.yaml b/deploy-as-code/helm/charts/health-services/health-individual/Chart.yaml new file mode 100644 index 0000000000..2d818ea4a1 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-individual/Chart.yaml @@ -0,0 +1,26 @@ +apiVersion: v2 +name: health-individual +description: A Helm chart for Kubernetes + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +version: 0.1.0 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. +appVersion: 1.16.0 + +dependencies: +- name: common + version: 0.0.5 + repository: file://../../common diff --git a/deploy-as-code/helm/charts/health-services/health-individual/templates/deployment.yaml b/deploy-as-code/helm/charts/health-services/health-individual/templates/deployment.yaml new file mode 100644 index 0000000000..3455c00058 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-individual/templates/deployment.yaml @@ -0,0 +1,2 @@ +# deployment.yaml +{{- template "common.deployment" . -}} \ No newline at end of file diff --git a/deploy-as-code/helm/charts/health-services/health-individual/templates/ingress.yaml b/deploy-as-code/helm/charts/health-services/health-individual/templates/ingress.yaml new file mode 100644 index 0000000000..9a573c0d7d --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-individual/templates/ingress.yaml @@ -0,0 +1,2 @@ +# ingress.yaml +{{- template "common.ingress" . -}} \ No newline at end of file diff --git a/deploy-as-code/helm/charts/health-services/health-individual/templates/service.yaml b/deploy-as-code/helm/charts/health-services/health-individual/templates/service.yaml new file mode 100644 index 0000000000..7356445764 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-individual/templates/service.yaml @@ -0,0 +1,2 @@ +# service.yaml +{{- template "common.service" . -}} \ No newline at end of file diff --git a/deploy-as-code/helm/charts/health-services/health-individual/values.yaml b/deploy-as-code/helm/charts/health-services/health-individual/values.yaml new file mode 100644 index 0000000000..40468610bb --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-individual/values.yaml @@ -0,0 +1,157 @@ +# Common Labels +labels: + app: "health-individual" + group: "core" + +namespace: health + +# Ingress Configs +ingress: + namespace: egov + enabled: true + zuul: true + context: "health-individual" + +# Init Containers Configs +initContainers: + dbMigration: + enabled: true + schemaTable: "individual_schema" + image: + repository: "health-individual-db" + +# Container Configs +image: + repository: "health-individual" +replicas: "1" +healthChecks: + enabled: true + livenessProbePath: "/health-individual/health" + readinessProbePath: "/health-individual/health" +appType: "java-spring" +tracing-enabled: true +heap: "-Xmx192m -Xms192m" +java-args: "" + +# Additional Container Envs +env: | + - name: SPRING_KAFKA_CONSUMER_GROUP_ID + value: health-individual + - name: SERVER_SERVLET_CONTEXT_PATH + value: "/health-individual" + - name: SPRING_KAFKA_PRODUCER_KEY_SERIALIZER + value: org.apache.kafka.common.serialization.StringSerializer + {{- if index .Values "global" "tracer-errors-provideexceptionindetails" }} + - name: TRACER_ERRORS_PROVIDEEXCEPTIONINDETAILS + valueFrom: + configMapKeyRef: + name: egov-config + key: tracer-errors-provideexceptionindetails + {{- end }} + - name: EGOV_IDGEN_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-idgen + - name: EGOV_IDGEN_PATH + value: "egov-idgen/id/_generate" + - name: EGOV_IDGEN_INTEGRATION_ENABLED + value: "true" + - name: IDGEN.INDIVIDUAL.ID.FORMAT + value: "individual.id" + - name: SPRING_REDIS_HOST + value: redis.backbone + - name: SPRING_REDIS_PORT + value: "6379" + - name: SPRING_CACHE_TYPE + value: "redis" + - name: SPRING_CACHE_REDIS_TIME-TO-LIVE + value: "60" + - name: SPRING_CACHE_AUTOEXPIRY + value: "true" + - name: INDIVIDUAL.CONSUMER.BULK.CREATE.TOPIC + value: "individual-consumer-bulk-create-topic" + - name: INDIVIDUAL.CONSUMER.BULK.UPDATE.TOPIC + value: "individual-consumer-bulk-update-topic" + - name: INDIVIDUAL.CONSUMER.BULK.DELETE.TOPIC + value: "individual-consumer-bulk-delete-topic" + - name: INDIVIDUAL.PRODUCER.SAVE.TOPIC + value: "save-individual-topic" + - name: INDIVIDUAL.PRODUCER.UPDATE.TOPIC + value: "update-individual-topic" + - name: INDIVIDUAL.PRODUCER.DELETE.TOPIC + value: "delete-individual-topic" + - name: KAFKA_TOPICS_NOTIFICATION_SMS + value: "egov.core.notification.sms" + {{- if index .Values "state-level-tenant-id" }} + - name: STATE_LEVEL_TENANT_ID + value: {{ index .Values "state-level-tenant-id" | quote }} + {{- end }} + {{- if index .Values "notification-sms-disabled-roles" }} + - name: NOTIFICATION_SMS_DISABLED_ROLES + value: {{ index .Values "notification-sms-disabled-roles" | quote }} + {{- end }} + - name: JAVA_OPTS + value: {{ index .Values "heap" | quote }} + - name: JAVA_ARGS + value: {{ index .Values "java-args" | quote }} + - name: JAVA_ENABLE_DEBUG + value: {{ index .Values "java-enable-debug" | quote }} + - name: SERVER_PORT + value: "8080" + - name: SECURITY_BASIC_ENABLED + value: "false" + - name: MANAGEMENT_SECURITY_ENABLED + value: "false" + - name: EGOV_MDMS_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-mdms-service + - name: EGOV_MDMS_SEARCH_ENDPOINT + value: "/egov-mdms-service/v1/_search" + - name: EGOV_ENC_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-enc-service + - name: EGOV_LOCALIZATION_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-localization + - name: EGOV_ENC_ENCRYPT_ENDPOINT + value: "/egov-enc-service/crypto/v1/_encrypt" + - name: EGOV_ENC_DECRYPT_ENDPOINT + value: "/egov-enc-service/crypto/v1/_decrypt" + - name: AADHAAR_PATTERN + value: "\\d{12}" + - name: MOBILE_PATTERN + value: "\\d+" + - name: EGOV_USER_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-user + - name: EGOV_CREATE_USER_URL + value: "/user/users/_createnovalidate" + - name: EGOV_SEARCH_USER_URL + value: "/user/_search" + - name: EGOV_UPDATE_USER_URL + value: "/user/users/_updatenovalidate" + - name: EGOV_USER_INTEGRATION_ENABLED + value: "true" + - name: USER_SYNC_ENABLED + value: "true" + - name: USER_SERVICE_USER_TYPE + value: "CITIZEN" + - name: USER_SERVICE_ACCOUNT_LOCKED + value: "false" + - name: INDIVIDUAL_PRODUCER_UPDATE_USER_ID_TOPIC + value: "update-user-id-topic" + - name: NOTIFICATION_SMS_ENABLED + value: "false" + {{- if index .Values "tracing-enabled" }} + - name: TRACER_OPENTRACING_ENABLED + value: "true" + {{- end }} \ No newline at end of file diff --git a/deploy-as-code/helm/charts/health-services/health-pgr-services/Chart.yaml b/deploy-as-code/helm/charts/health-services/health-pgr-services/Chart.yaml new file mode 100644 index 0000000000..dad869be1b --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-pgr-services/Chart.yaml @@ -0,0 +1,26 @@ +apiVersion: v2 +name: health-pgr-services +description: A Helm chart for Kubernetes + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +version: 0.1.0 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. +appVersion: 1.16.0 + +dependencies: +- name: common + version: 0.0.5 + repository: file://../../common diff --git a/deploy-as-code/helm/charts/health-services/health-pgr-services/templates/deployment.yaml b/deploy-as-code/helm/charts/health-services/health-pgr-services/templates/deployment.yaml new file mode 100644 index 0000000000..3455c00058 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-pgr-services/templates/deployment.yaml @@ -0,0 +1,2 @@ +# deployment.yaml +{{- template "common.deployment" . -}} \ No newline at end of file diff --git a/deploy-as-code/helm/charts/health-services/health-pgr-services/templates/ingress.yaml b/deploy-as-code/helm/charts/health-services/health-pgr-services/templates/ingress.yaml new file mode 100644 index 0000000000..9a573c0d7d --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-pgr-services/templates/ingress.yaml @@ -0,0 +1,2 @@ +# ingress.yaml +{{- template "common.ingress" . -}} \ No newline at end of file diff --git a/deploy-as-code/helm/charts/health-services/health-pgr-services/templates/service.yaml b/deploy-as-code/helm/charts/health-services/health-pgr-services/templates/service.yaml new file mode 100644 index 0000000000..7356445764 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-pgr-services/templates/service.yaml @@ -0,0 +1,2 @@ +# service.yaml +{{- template "common.service" . -}} \ No newline at end of file diff --git a/deploy-as-code/helm/charts/health-services/health-pgr-services/values.yaml b/deploy-as-code/helm/charts/health-services/health-pgr-services/values.yaml new file mode 100644 index 0000000000..15aff63709 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-pgr-services/values.yaml @@ -0,0 +1,172 @@ +# Common Labels +labels: + app: "health-pgr-services" + group: "rainmaker" + +namespace: health + +# Ingress Configs +ingress: + namespace: egov + enabled: true + zuul: true + context: "pgr-services" + +# Init Containers Configs +initContainers: + dbMigration: + enabled: true + schemaTable: "pgr_services_schema" + image: + repository: "health-pgr-services-db" + +# Container Configs +image: + repository: "health-pgr-services" +replicas: "1" +healthChecks: + enabled: true + livenessProbePath: "/health-pgr-services/health" + readinessProbePath: "/health-pgr-services/health" +appType: "java-spring" +tracing-enabled: true +notification-sms-enabled: "true" +notification-email-enabled: "false" +new-complaint-enabled: "true" +reassign-complaint-enabled: "true" +reopen-complaint-enabled: "true" +comment-by-employee-notif-enabled: "false" +notification-allowed-status: "open,assigned,rejected,resolved" +heap: "-Xmx192m -Xms192m" +java-args: "-Dspring.profiles.active=monitoring" + +# Additional Container Envs +env: | + - name: SPRING_KAFKA_CONSUMER_GROUP_ID + value: egov-pgr-services + - name: SERVER_SERVLET_CONTEXT_PATH + value: "/health-pgr-services" + - name: SPRING_KAFKA_PRODUCER_KEY_SERIALIZER + value: org.apache.kafka.common.serialization.StringSerializer + {{- if index .Values "global" "serializers-timezone-in-ist" }} + - name: SPRING_KAFKA_PRODUCER_VALUE_SERIALIZER + value: org.egov.tracer.kafka.serializer.ISTTimeZoneJsonSerializer + {{- end }} + - name: EGOV_IDGEN_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-idgen + - name: EGOV_WORKFLOW_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-workflow-v2 + - name: EGOV_MDMS_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-mdms-service + - name: EGOV_LOCALIZATION_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-localization + - name: EGOV_INFRA_SEARCHER_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-searcher + - name: EGOV_COMMON_MASTERS_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-common-masters + - name: EGOV_FILESTORE_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-filestore + - name: EGOV_UI_APP_HOST + valueFrom: + configMapKeyRef: + name: egov-config + key: egov-services-fqdn-name + - name: EGOV_USER_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-user + - name: NOTIFICATION_SMS_ENABLED + value: {{ index .Values "notification-sms-enabled" | quote }} + - name: NOTIFICATION_EMAIL_ENABLED + value: {{ index .Values "notification-email-enabled" | quote }} + - name: NEW_COMPLAINT_ENABLED + value: {{ index .Values "new-complaint-enabled" | quote }} + - name: REASSIGN_COMPLAINT_ENABLED + value: {{ index .Values "reassign-complaint-enabled" | quote }} + - name: REOPEN_COMPLAINT_ENABLED + value: {{ index .Values "reopen-complaint-enabled" | quote }} + - name: COMMENT_BY_EMPLOYEE_NOTIF_ENABLED + value: {{ index .Values "comment-by-employee-notif-enabled" | quote }} + - name: EGOV_PGR_APP_PLAYSTORE_LINK + value: "https://goo.gl/ArDyQ1" + - name: NOTIFICATION_ALLOWED_ON_STATUS + value: {{ index .Values "notification-allowed-status" | quote }} + - name: EGOV_HRMS_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-hrms + {{- if index .Values "global" "tracer-errors-provideexceptionindetails" }} + - name: TRACER_ERRORS_PROVIDEEXCEPTIONINDETAILS + valueFrom: + configMapKeyRef: + name: egov-config + key: tracer-errors-provideexceptionindetails + {{- end }} + - name: JAVA_OPTS + value: {{ index .Values "heap" | quote }} + - name: JAVA_ARGS + value: {{ index .Values "java-args" | quote }} + - name: JAVA_ENABLE_DEBUG + value: {{ index .Values "java-enable-debug" | quote }} + - name: SERVER_PORT + value: "8080" + - name: SECURITY_BASIC_ENABLED + value: "false" + - name: MANAGEMENT_SECURITY_ENABLED + value: "false" + - name: EGOV_LOCATION_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-location + - name: EGOV_USR_EVENTS_NOTIFICATION_ENABLED + value: "true" + - name: EGOV_USR_EVENTS_CREATE_TOPIC + value: "persist-user-events-async" + - name: EGOV_USR_EVENTS_RATE_LINK + value: "/citizen/otpLogin?mobileNo=$mobile&redirectTo=feedback/$servicerequestid" + - name: EGOV_USR_EVENTS_REOPEN_LINK + value: "/citizen/otpLogin?mobileNo=$mobile&redirectTo=reopen-complaint/$servicerequestid" + - name: EGOV_USR_EVENTS_RATE_CODE + value: "RATE" + - name: EGOV_USR_EVENTS_REOPEN_CODE + value: "REOPEN" + - name: PGR_STATELEVEL_TENANTID + valueFrom: + configMapKeyRef: + name: egov-config + key: egov-state-level-tenant-id + {{- if index .Values "tracing-enabled" }} + - name: TRACER_OPENTRACING_ENABLED + value: "true" + {{- end }} + {{- if index .Values "time-before-closing-complaint" }} + - name: PGR_COMPLAIN_IDLE_TIME + value: {{ index .Values "time-before-closing-complaint" | quote }} + {{- end }} + + + diff --git a/deploy-as-code/helm/charts/health-services/health-project/Chart.yaml b/deploy-as-code/helm/charts/health-services/health-project/Chart.yaml new file mode 100644 index 0000000000..4e1f905962 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-project/Chart.yaml @@ -0,0 +1,26 @@ +apiVersion: v2 +name: health-project +description: A Helm chart for Kubernetes + +# A chart can be either an 'application' or a 'library' chart. +# +# Application charts are a collection of templates that can be packaged into versioned archives +# to be deployed. +# +# Library charts provide useful utilities or functions for the chart developer. They're included as +# a dependency of application charts to inject those utilities and functions into the rendering +# pipeline. Library charts do not define any templates and therefore cannot be deployed. +type: application + +# This is the chart version. This version number should be incremented each time you make changes +# to the chart and its templates, including the app version. +version: 0.1.0 + +# This is the version number of the application being deployed. This version number should be +# incremented each time you make changes to the application. +appVersion: 1.16.0 + +dependencies: +- name: common + version: 0.0.5 + repository: file://../../common diff --git a/deploy-as-code/helm/charts/health-services/health-project/templates/deployment.yaml b/deploy-as-code/helm/charts/health-services/health-project/templates/deployment.yaml new file mode 100644 index 0000000000..3455c00058 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-project/templates/deployment.yaml @@ -0,0 +1,2 @@ +# deployment.yaml +{{- template "common.deployment" . -}} \ No newline at end of file diff --git a/deploy-as-code/helm/charts/health-services/health-project/templates/ingress.yaml b/deploy-as-code/helm/charts/health-services/health-project/templates/ingress.yaml new file mode 100644 index 0000000000..9a573c0d7d --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-project/templates/ingress.yaml @@ -0,0 +1,2 @@ +# ingress.yaml +{{- template "common.ingress" . -}} \ No newline at end of file diff --git a/deploy-as-code/helm/charts/health-services/health-project/templates/service.yaml b/deploy-as-code/helm/charts/health-services/health-project/templates/service.yaml new file mode 100644 index 0000000000..7356445764 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-project/templates/service.yaml @@ -0,0 +1,2 @@ +# service.yaml +{{- template "common.service" . -}} \ No newline at end of file diff --git a/deploy-as-code/helm/charts/health-services/health-project/values.yaml b/deploy-as-code/helm/charts/health-services/health-project/values.yaml new file mode 100644 index 0000000000..a1c0c78c45 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-project/values.yaml @@ -0,0 +1,248 @@ +# Common Labels +labels: + app: "health-project" + group: "core" + +namespace: health + +# Ingress Configs +ingress: + namespace: egov + enabled: true + zuul: true + context: "project" + +# Init Containers Configs +initContainers: + dbMigration: + enabled: true + schemaTable: "project_schema" + image: + repository: "health-project-db" + +# Container Configs +image: + repository: "health-project" +replicas: "1" +healthChecks: + enabled: true + livenessProbePath: "/health-project/health" + readinessProbePath: "/health-project/health" +appType: "java-spring" +tracing-enabled: true +heap: "-Xmx192m -Xms192m" +java-args: "" + +# Additional Container Envs +env: | + - name: SPRING_KAFKA_CONSUMER_GROUP_ID + value: health-project + - name: SERVER_SERVLET_CONTEXT_PATH + value: "/health-project" + - name: SPRING_KAFKA_PRODUCER_KEY_SERIALIZER + value: org.apache.kafka.common.serialization.StringSerializer + {{- if index .Values "global" "tracer-errors-provideexceptionindetails" }} + - name: TRACER_ERRORS_PROVIDEEXCEPTIONINDETAILS + valueFrom: + configMapKeyRef: + name: egov-config + key: tracer-errors-provideexceptionindetails + {{- end }} + - name: EGOV_IDGEN_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-idgen + - name: EGOV_IDGEN_PATH + value: "egov-idgen/id/_generate" + - name: EGOV_IDGEN_INTEGRATION_ENABLED + value: "true" + - name: PROJECT.STAFF.IDGEN.ID.FORMAT + value: "project.staff.id" + - name: PROJECT.FACILITY.IDGEN.ID.FORMAT + value: "project.facility.id" + - name: PROJECT.TASK.IDGEN.ID.FORMAT + value: "project.task.id" + - name: IDGEN.PROJECT.BENEFICIARY.ID.FORMAT + value: "project.beneficiary.id" + - name: SPRING_REDIS_HOST + value: redis.backbone + - name: SPRING_REDIS_PORT + value: "6379" + - name: SPRING_CACHE_TYPE + value: "redis" + - name: SPRING_CACHE_REDIS_TIME-TO-LIVE + value: "60" + - name: SPRING_CACHE_AUTOEXPIRY + value: "true" + - name: JAVA_OPTS + value: {{ index .Values "heap" | quote }} + - name: JAVA_ARGS + value: {{ index .Values "java-args" | quote }} + - name: JAVA_ENABLE_DEBUG + value: {{ index .Values "java-enable-debug" | quote }} + - name: SERVER_PORT + value: "8080" + - name: SECURITY_BASIC_ENABLED + value: "false" + - name: EGOV_USER_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-user-egov + - name: EGOV_SEARCH_USER_URL + value: "/user/_search" + - name: EGOV_USER_INTEGRATION_ENABLED + value: "true" + - name: MANAGEMENT_SECURITY_ENABLED + value: "false" + {{- if index .Values "tracing-enabled" }} + - name: TRACER_OPENTRACING_ENABLED + value: "true" + {{- end }} + - name: SERVER_CONTEXT_PATH + value: /project + - name: SERVER_SERVLET_CONTEXT-PATH + value: /project + - name: EGOV_LOCATION_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-location + - name: EGOV_LOCATION_CONTEXT_PATH + value: "/egov-location/location/v11" + - name: EGOV_LOCATION_ENDPOINT + value: "/boundarys/_search" + - name: EGOV_MDMS_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-mdms-service + - name: EGOV_MDMS_SEARCH_ENDPOINT + value: "/egov-mdms-service/v1/_search" + - name: EGOV_MDMS_INTEGRATION_ENABLED + value: "true" + - name: EGOV_MDMS_MASTER_NAME + value: "project_master" + - name: EGOV_MDMS_MODULE_NAME + value: "project" + - name: EGOV_HOUSEHOLD_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: household + - name: EGOV_SEARCH_HOUSEHOLD_URL + value: "/household/v1/_search" + - name: EGOV_INDIVIDUAL_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: individual + - name: EGOV_SEARCH_INDIVIDUAL_URL + value: "/individual/v1/_search" + - name: EGOV_PRODUCT_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: product + - name: EGOV_SEARCH_PRODUCT_VARIANT_URL + value: "/product/variant/v1/_search" + - name: PROJECT.TASK.KAFKA.CREATE.TOPIC + value: "save-project-task-topic" + - name: PROJECT.TASK.CONSUMER.BULK.CREATE.TOPIC + value: "save-project-task-bulk-topic" + - name: PROJECT.TASK.KAFKA.UPDATE.TOPIC + value: "update-project-task-topic" + - name: PROJECT.TASK.CONSUMER.BULK.UPDATE.TOPIC + value: "update-project-task-bulk-topic" + - name: PROJECT.TASK.KAFKA.DELETE.TOPIC + value: "delete-project-task-topic" + - name: PROJECT.TASK.CONSUMER.BULK.DELETE.TOPIC + value: "delete-project-task-bulk-topic" + - name: PROJECT.BENEFICIARY.KAFKA.CREATE.TOPIC + value: "save-project-beneficiary-topic" + - name: PROJECT.BENEFICIARY.KAFKA.UPDATE.TOPIC + value: "update-project-beneficiary-topic" + - name: PROJECT.BENEFICIARY.KAFKA.DELETE.TOPIC + value: "delete-project-beneficiary-topic" + - name: PROJECT.BENEFICIARY.CONSUMER.BULK.CREATE.TOPIC + value: "project-beneficiary-consumer-bulk-create-topic" + - name: PROJECT.BENEFICIARY.CONSUMER.BULK.UPDATE.TOPIC + value: "project-beneficiary-consumer-bulk-update-topic" + - name: PROJECT.BENEFICIARY.CONSUMER.BULK.DELETE.TOPIC + value: "project-beneficiary-consumer-bulk-delete-topic" + - name: PROJECT.STAFF.KAFKA.DELETE.TOPIC + value: "delete-project-staff-topic" + - name: PROJECT.STAFF.KAFKA.CREATE.TOPIC + value: "save-project-staff-topic" + - name: PROJECT.STAFF.KAFKA.UPDATE.TOPIC + value: "update-project-staff-topic" + - name: PROJECT.STAFF.CONSUMER.BULK.DELETE.TOPIC + value: "delete-project-staff-bulk-topic" + - name: PROJECT.STAFF.CONSUMER.BULK.CREATE.TOPIC + value: "create-project-staff-bulk-topic" + - name: PROJECT.STAFF.CONSUMER.BULK.UPDATE.TOPIC + value: "update-project-staff-bulk-topic" + - name: SEARCH_API_LIMIT + value: "1000" + - name: PROJECT.DOCUMENT.ID.VERIFICATION.REQUIRED + value: "false" + - name: PROJECT.MANAGEMENT.SYSTEM.KAFKA.CREATE.TOPIC + value: "save-project" + - name: PROJECT.MANAGEMENT.SYSTEM.KAFKA.UPDATE.TOPIC + value: "update-project" + {{- if index .Values "project-default-offset" }} + - name: PROJECT.DEFAULT.OFFSET + value: {{ index .Values "project-default-offset" | quote }} + {{- end }} + {{- if index .Values "project-default-limit" }} + - name: PROJECT.DEFAULT.LIMIT + value: {{ index .Values "project-default-limit" | quote }} + {{- end }} + {{- if index .Values "project-search-max-limit" }} + - name: PROJECT.SEARCH.MAX.LIMIT + value: {{ index .Values "project-search-max-limit" | quote }} + {{- end }} + - name: EGOV.IDGEN.PROJECT.NUMBER.NAME + value: "project.number" + - name: PROJECT.RESOURCE.IDGEN.ID.FORMAT + value: "project.resource.id" + - name: PROJECT.RESOURCE.KAFKA.CREATE.TOPIC + value: "save-project-resource-topic" + - name: PROJECT.RESOURCE.KAFKA.UPDATE.TOPIC + value: "update-project-resource-topic" + - name: PROJECT.RESOURCE.KAFKA.DELETE.TOPIC + value: "delete-project-resource-topic" + - name: PROJECT.RESOURCE.CONSUMER.BULK.CREATE.TOPIC + value: "save-project-resource-bulk-topic" + - name: PROJECT.RESOURCE.CONSUMER.BULK.UPDATE.TOPIC + value: "update-project-resource-bulk-topic" + - name: PROJECT.RESOURCE.CONSUMER.BULK.DELETE.TOPIC + value: "delete-project-resource-bulk-topic" + - name: PROJECT.FACILITY.KAFKA.DELETE.TOPIC + value: "delete-project-facility-topic" + - name: PROJECT.FACILITY.KAFKA.CREATE.TOPIC + value: "save-project-facility-topic" + - name: PROJECT.FACILITY.KAFKA.UPDATE.TOPIC + value: "update-project-facility-topic" + - name: PROJECT.FACILITY.CONSUMER.BULK.DELETE.TOPIC + value: "delete-project-facility-bulk-topic" + - name: PROJECT.FACILITY.CONSUMER.BULK.CREATE.TOPIC + value: "create-project-facility-bulk-topic" + - name: PROJECT.FACILITY.CONSUMER.BULK.UPDATE.TOPIC + value: "update-project-facility-bulk-topic" + - name: EGOV.USER.ID.VALIDATOR + value: egov-user + - name: EGOV_FACILITY_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: facility + - name: EGOV_SEARCH_FACILITY_URL + value: "/facility/v1/_search" + - name: PROJECT_MDMS_MODULE + value: "HCM-PROJECT-TYPES" + - name: EGOV_LOCATION_HIERARCHY_TYPE + value: "ADMIN" + - name: EGOV_LOCATION_CODE_QUERY_PARAM + value: "code" diff --git a/deploy-as-code/helm/environments/unified-health-dev.yaml b/deploy-as-code/helm/environments/unified-health-dev.yaml index 21f97756ec..7b794cd69f 100644 --- a/deploy-as-code/helm/environments/unified-health-dev.yaml +++ b/deploy-as-code/helm/environments/unified-health-dev.yaml @@ -28,6 +28,7 @@ cluster-configs: db-host: unified-dev-db.czvokiourya9.ap-south-1.rds.amazonaws.com ## Add db-host name eg: egov-demo.database.azure.com db-name: unifieddevdb ## Add db-name db-url: jdbc:postgresql://unified-dev-db.czvokiourya9.ap-south-1.rds.amazonaws.com:5432/unifieddevdb ## example: jdbc:postgresql://egov-demo.postgres.database.azure.com:5432/egov_demo + health-db-url: jdbc:postgresql://unified-qa-db.czvokiourya9.ap-south-1.rds.amazonaws.com:5432/unifiedqadb?currentSchema=health domain: 'https://unified-dev.digit.org' ## Add your Domain Name egov-services-fqdn-name: 'https://unified-dev.digit.org/' ## Add your Domain Name diff --git a/deploy-as-code/helm/environments/unified-health-qa.yaml b/deploy-as-code/helm/environments/unified-health-qa.yaml index 9d6d1e1073..129b300406 100644 --- a/deploy-as-code/helm/environments/unified-health-qa.yaml +++ b/deploy-as-code/helm/environments/unified-health-qa.yaml @@ -16,6 +16,7 @@ cluster-configs: db-host: unified-qa-db.czvokiourya9.ap-south-1.rds.amazonaws.com:5432 ## Add db-host name eg: egov-demo.database.azure.com db-name: unifiedqadb ## Add db-name db-url: jdbc:postgresql://unified-qa-db.czvokiourya9.ap-south-1.rds.amazonaws.com:5432/unifiedqadb ## example: jdbc:postgresql://egov-demo.postgres.database.azure.com:5432/egov_demo + health-db-url: jdbc:postgresql://unified-qa-db.czvokiourya9.ap-south-1.rds.amazonaws.com:5432/unifiedqadb?currentSchema=health domain: unified-qa.digit.org ## Add your Domain Name egov-services-fqdn-name: https://unified-qa.digit.org/ ## Add your Domain Name state-level-tenant-id: "pg" diff --git a/deploy-as-code/helm/environments/unified-health-uat.yaml b/deploy-as-code/helm/environments/unified-health-uat.yaml index 1db1bf40d3..115078d8d1 100644 --- a/deploy-as-code/helm/environments/unified-health-uat.yaml +++ b/deploy-as-code/helm/environments/unified-health-uat.yaml @@ -16,6 +16,7 @@ cluster-configs: db-host: unified-uat-db.czvokiourya9.ap-south-1.rds.amazonaws.com:5432 ## Add db-host name eg: egov-demo.database.azure.com db-name: unifieduatdb ## Add db-name db-url: jdbc:postgresql://unified-uat-db.czvokiourya9.ap-south-1.rds.amazonaws.com:5432/unifieduatdb ## example: jdbc:postgresql://egov-demo.postgres.database.azure.com:5432/egov_demo + health-db-url: jdbc:postgresql://unified-qa-db.czvokiourya9.ap-south-1.rds.amazonaws.com:5432/unifiedqadb?currentSchema=health domain: unified-uat.digit.org ## Add your Domain Name aws-cluster-ip: https://9F8FAAF2C4C747668E77131BAB0AF787.gr7.ap-south-1.eks.amazonaws.com │ aws-cluster-name: arn:aws:eks:ap-south-1:349271159511:cluster/unified-uat │