diff --git a/deploy-as-code/helm/charts/health-services/health-location/Chart.yaml b/deploy-as-code/helm/charts/health-services/health-location/Chart.yaml new file mode 100644 index 0000000000..4b5bde206d --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-location/Chart.yaml @@ -0,0 +1,26 @@ +apiVersion: v2 +name: health-location +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-location/templates/deployment.yaml b/deploy-as-code/helm/charts/health-services/health-location/templates/deployment.yaml new file mode 100644 index 0000000000..3455c00058 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-location/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-location/templates/ingress.yaml b/deploy-as-code/helm/charts/health-services/health-location/templates/ingress.yaml new file mode 100644 index 0000000000..9a573c0d7d --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-location/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-location/templates/service.yaml b/deploy-as-code/helm/charts/health-services/health-location/templates/service.yaml new file mode 100644 index 0000000000..7356445764 --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-location/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-location/values.yaml b/deploy-as-code/helm/charts/health-services/health-location/values.yaml new file mode 100644 index 0000000000..a3325b64fc --- /dev/null +++ b/deploy-as-code/helm/charts/health-services/health-location/values.yaml @@ -0,0 +1,72 @@ +# Common Labels +labels: + app: "health-location" + group: "core" + +namespace: health + +# Ingress Configs +ingress: + enabled: true + zuul: true + context: "health-location" + +# Init Containers Configs +initContainers: + dbMigration: + enabled: true + schemaTable: "health_location_schema" + image: + repository: "health-location-db" + +# Container Configs +image: + repository: "health-location" +replicas: "1" +healthChecks: + enabled: true + livenessProbePath: "/egov-location/health" + readinessProbePath: "/egov-location/health" +appType: "java-spring" +tracing-enabled: true +heap: "-Xmx192m -Xms192m" +java-args: "-Dspring.profiles.active=monitoring" +gmaps: true +# Additional Container Envs +env: | + - name: SPRING_KAFKA_CONSUMER_GROUP_ID + value: egov-location-consumer-group + - 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: SERVER_PORT + value: "8080" + - name: EGOV_SERVICES_EGOV_MDMS_HOSTNAME + valueFrom: + configMapKeyRef: + name: egov-service-host + key: egov-mdms-service-legacy + - name: EGOV_SERVICES_EGOV_MDMS_SEARCHPATH + value: "egov-mdms-service-legacy/v1/_search" + {{- if index .Values "gmaps" }} + - name: GMAPS_API_KEY + valueFrom: + secretKeyRef: + name: egov-location + key: gmapskey + {{- end }} + - name: JAVA_OPTS + value: {{ index .Values "heap" | quote }} + - 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 }}