diff --git a/deploy-as-code/helm/charts/health-services/egov-mdms-create/Chart.yaml b/deploy-as-code/helm/charts/health-services/egov-mdms-create/Chart.yaml new file mode 100644 index 0000000000..1d648fe452 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/egov-mdms-create/Chart.yaml @@ -0,0 +1,26 @@ +apiVersion: v2 +name: egov-mdms-create +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/egov-mdms-create/templates/deployment.yaml b/deploy-as-code/helm/charts/health-services/egov-mdms-create/templates/deployment.yaml new file mode 100644 index 0000000000..3455c00058 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/egov-mdms-create/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/egov-mdms-create/templates/ingress.yaml b/deploy-as-code/helm/charts/health-services/egov-mdms-create/templates/ingress.yaml new file mode 100644 index 0000000000..9a573c0d7d --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/egov-mdms-create/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/egov-mdms-create/templates/service.yaml b/deploy-as-code/helm/charts/health-services/egov-mdms-create/templates/service.yaml new file mode 100644 index 0000000000..7356445764 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/egov-mdms-create/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/egov-mdms-create/values.yaml b/deploy-as-code/helm/charts/health-services/egov-mdms-create/values.yaml new file mode 100644 index 0000000000..2eb12da08d --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/egov-mdms-create/values.yaml @@ -0,0 +1,115 @@ +# Common Labels +labels: + app: "egov-mdms-create" + group: "core" + +namespace: health + +# Ingress Configs +ingress: + enabled: true + zuul: true + context: "egov-mdms-create" + +# Init Containers Configs +initContainers: + gitSync: + enabled: true + repo: "git@github.com:egovernments/egov-mdms-data" + branch: "master" + +# Container Configs +image: + repository: "egov-mdms-create" +replicas: "1" +healthChecks: + enabled: true + livenessProbePath: "/egov-mdms-create/health" + readinessProbePath: "/egov-mdms-create/health" +appType: "java-spring" +tracing-enabled: true +heap: "-Xmx192m -Xms192m" +java-args: "-Dspring.profiles.active=monitoring" +mdms-path: "/work-dir/egov-mdms-data/data" +mdms-git-url: "" +mdms-folder: "egov-mdms-data" +masters-config-url: "file:///work-dir/egov-mdms-data/master-config.json" +git-repo-path: "file:///work-dir/egov-mdms-data/" +egov-repo-branch: "DEV" +branch: "master" + +# Additional Container Envs +env: | + - name: SERVER_CONTEXT_PATH + value: /egov-mdms-create + - name: SPRING_KAFKA_CONSUMER_GROUP_ID + value: mdms-service-create + - 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: JAVA_OPTS + value: {{ index .Values "heap" | quote }} + - name: JAVA_ARGS + value: {{ index .Values "java-args" | quote }} + - name: SERVER_PORT + value: "8080" + - name: EGOV_MDMS_CONF_PATH + value: {{ index .Values "mdms-path" | quote }} + - name: EGOV_DATA_ROOT_FOLDER + value: data + - name: EGOV_REPO_OWNER + value: egovernments + - name: EGOV_REPO + value: {{ index .Values "mdms-folder" | quote }} + - name: EGOV_REPO_BRANCH + value: {{ index .Values "egov-repo-branch" | quote }} + - name: EGOV_MDMS_GIT_URL + value: {{ index .Values "mdms-git-url" | quote }} + - name: EGOV_MDMS_FOLDER + value: {{ index .Values "mdms-folder" | quote }} + - name: MASTERS_CONFIG_URL + value: {{ index .Values "masters-config-url" | quote }} + - name: GIT_REPO_PATH + value: {{ index .Values "git-repo-path" | quote }} + - name: RELOAD_PATH_HOST + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-mdms-service + - name: RELOAD_PATH_ENDPOINT + value: /egov-mdms-service/v1/_reload + - name: RELOADOBJ_PATH_ENDPOINT + value: /egov-mdms-service/v1/_reloadobj + - name: SEARCH_PATH_ENDPOINT + value: /egov-mdms-service/v1/_search + - name: FILEPATH_RELOAD + value: "false" + - name: RELOAD_ENABLED + value: "false" + - name: CACHE_FETCH_ENABLED + value: "true" + - name: EGOV_GITHUB_USER + valueFrom: + secretKeyRef: + name: hcm-moz-impl + key: githubusername + - name: EGOV_GITHUB_PASS + valueFrom: + secretKeyRef: + name: hcm-moz-impl + key: githubpat + - name: EGOV_KAFKA_TOPICS_GITPUSHPROCESS + value: mdms.create.gitpushprocess + - name: EGOV_KAFKA_TOPICS_GITPUSHPROCESS_KEY + value: mdms.create.gitpushprocess.key + {{- if index .Values "branch" }} + - name: BRANCH + value: {{ index .Values "branch" | quote }} + {{- end }} + - name: SECURITY_BASIC_ENABLED + value: "false" + - name: MANAGEMENT_SECURITY_ENABLED + value: "false" \ No newline at end of file diff --git a/deploy-as-code/helm/environments/unified-health-uat.yaml b/deploy-as-code/helm/environments/unified-health-uat.yaml index e13465d481..f82454a9a2 100644 --- a/deploy-as-code/helm/environments/unified-health-uat.yaml +++ b/deploy-as-code/helm/environments/unified-health-uat.yaml @@ -310,6 +310,22 @@ health-mdms-v1: masters-config-url: "file:///work-dir/egov-mdms-data/master-config.json" java-args: -Dspring.profiles.active=monitoring +egov-mdms-create: + heap: "-Xmx256m -Xms256m" + replicas: 1 + images: + - egovio/egov-mdms-create + mdms-path: "/work-dir/egov-mdms-data/data" + initContainers: + gitSync: + repo: "git@github.com:egovernments/egov-mdms-data" ##### Change repo url with Your fork Repo url + branch: "UNIFIED-UAT" ##### Change repo branch with Your fork Repo branch + mdms-folder: "egov-mdms-data" + masters-config-url: "file:///work-dir/egov-mdms-data/master-config.json" + git-repo-path: "file:///work-dir/egov-mdms-data/" + egov-repo-branch: "UNIFIED-UAT" + java-args: -Dspring.profiles.active=monitoring + egov-indexer: heap: "-Xmx512m -Xms512m" memory_limits: "768Mi"