From 07255e078b6cf29fa38852b0d25c0fd5ce068bfc Mon Sep 17 00:00:00 2001 From: kanishq-egov Date: Wed, 4 Oct 2023 12:47:07 +0530 Subject: [PATCH] HLM-3675: Added changes for health hrms --- .../business-services/health-hrms/Chart.yaml | 26 ++++ .../health-hrms/templates/deployment.yaml | 2 + .../health-hrms/templates/ingress.yaml | 2 + .../health-hrms/templates/service.yaml | 2 + .../business-services/health-hrms/values.yaml | 123 ++++++++++++++++++ 5 files changed, 155 insertions(+) create mode 100644 deploy-as-code/helm/charts/business-services/health-hrms/Chart.yaml create mode 100644 deploy-as-code/helm/charts/business-services/health-hrms/templates/deployment.yaml create mode 100644 deploy-as-code/helm/charts/business-services/health-hrms/templates/ingress.yaml create mode 100644 deploy-as-code/helm/charts/business-services/health-hrms/templates/service.yaml create mode 100644 deploy-as-code/helm/charts/business-services/health-hrms/values.yaml diff --git a/deploy-as-code/helm/charts/business-services/health-hrms/Chart.yaml b/deploy-as-code/helm/charts/business-services/health-hrms/Chart.yaml new file mode 100644 index 000000000..897ee45e8 --- /dev/null +++ b/deploy-as-code/helm/charts/business-services/health-hrms/Chart.yaml @@ -0,0 +1,26 @@ +apiVersion: v2 +name: health-hrms +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/business-services/health-hrms/templates/deployment.yaml b/deploy-as-code/helm/charts/business-services/health-hrms/templates/deployment.yaml new file mode 100644 index 000000000..3455c0005 --- /dev/null +++ b/deploy-as-code/helm/charts/business-services/health-hrms/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/business-services/health-hrms/templates/ingress.yaml b/deploy-as-code/helm/charts/business-services/health-hrms/templates/ingress.yaml new file mode 100644 index 000000000..9a573c0d7 --- /dev/null +++ b/deploy-as-code/helm/charts/business-services/health-hrms/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/business-services/health-hrms/templates/service.yaml b/deploy-as-code/helm/charts/business-services/health-hrms/templates/service.yaml new file mode 100644 index 000000000..735644576 --- /dev/null +++ b/deploy-as-code/helm/charts/business-services/health-hrms/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/business-services/health-hrms/values.yaml b/deploy-as-code/helm/charts/business-services/health-hrms/values.yaml new file mode 100644 index 000000000..7cbcfeaca --- /dev/null +++ b/deploy-as-code/helm/charts/business-services/health-hrms/values.yaml @@ -0,0 +1,123 @@ +# Common Labels +labels: + app: "health-hrms" + group: "rainmaker" + +# Ingress Configs +ingress: + enabled: true + zuul: true + context: "health-hrms" + +# Init Containers Configs +initContainers: + dbMigration: + enabled: true + schemaTable: "health_hrms_schema" + image: + repository: "health-hrms-db" + +# Container Configs +image: + repository: "health-hrms" +replicas: "1" +healthChecks: + enabled: true + livenessProbePath: "/health-hrms/health" + readinessProbePath: "/health-hrms/health" +appType: "java-spring" +tracing-enabled: true +employee-applink: "https://egov-micro-dev.egovernments.org/employee/user/login" +heap: "-Xmx192m -Xms192m" +java-args: "-Dspring.profiles.active=monitoring" + +# Additional Container Envs +env: | + - name: EGOV_SERVICES_DATA_SYNC_EMPLOYEE_REQUIRED + 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_FILESTORE_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-filestore + - name: STATE_LEVEL_TENANT_ID + valueFrom: + configMapKeyRef: + name: egov-config + key: egov-state-level-tenant-id + - name: EGOV_FILESTORE_URL_ENDPOINT + value: /filestore/v1/files/url + - name: EGOV_LOCALIZATION_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-localization + - name: EGOV_LOCALIZATION_SEARCH_ENDPOINT + value: /localization/messages/v1/_search + - name: EGOV_IDGEN_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-idgen + - name: EGOV_SERVICES_EGOV_IDGEN_CREATEPATH + value: /egov-idgen/id/_generate + - name: EGOV_SERVICES_EGOV_IDGEN_EMP_CODE_NAME + value: employee.code + - name: EGOV_SERVICES_EGOV_IDGEN_EMP_CODE_FORMAT + value: EMP_[SEQ_EMPLOYEE_CODE] + - name: EGOV_USER_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-user + - name: EGOV_OTP_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-otp + - name: EGOV_ENVIRONMENT_DOMAIN + valueFrom: + configMapKeyRef: + name: egov-config + key: egov-services-fqdn-name + - name: EGOV_USER_SEARCH_ENDPOINT + value: /user/v1/_search + - name: EGOV_USER_CREATE_ENDPOINT + value: /user/users/_createnovalidate + - name: EGOV_USER_UPDATE_ENDPOINT + value: /user/users/_updatenovalidate + - name: EGOV_HRMS_EMPLOYEE_APP_LINK + value: {{ index .Values "employee-applink" | quote }} + - name: SPRING_KAFKA_CONSUMER_GROUP_ID + value: employee-group1 + - name: SPRING_KAFKA_PRODUCER_KEY_SERIALIZER + value: org.apache.kafka.common.serialization.StringSerializer + - name: SPRING_KAFKA_PRODUCER_VALUE_SERIALIZER + value: org.springframework.kafka.support.serializer.JsonSerializer + - name: KAFKA_TOPICS_SAVE_SERVICE + value: save-hrms-employee + - name: KAFKA_TOPICS_UPDATE_SERVICE + value: update-hrms-employee + - name: KAFKA_TOPICS_NOTIFICATION_SMS + value: egov.core.notification.sms + - name: JAVA_OPTS + value: {{ index .Values "heap" | quote }} + - name: SERVER_PORT + value: "8080" + - name: JAVA_ARGS + value: {{ index .Values "java-args" | quote }} + - name: SECURITY_BASIC_ENABLED + value: "false" + - name: MANAGEMENT_SECURITY_ENABLED + value: "false" + {{- if index .Values "tracing-enabled" }} + - name: TRACER_OPENTRACING_ENABLED + value: "true" + {{- end }}