Skip to content

Commit

Permalink
#SM-3177 added user-event service in unified-dev (#2075)
Browse files Browse the repository at this point in the history
  • Loading branch information
JithendarKumar-eGov committed Oct 25, 2023
1 parent 5565ad9 commit b18930c
Show file tree
Hide file tree
Showing 7 changed files with 122 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: v2
name: egov-user-event
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# deployment.yaml
{{- template "common.deployment" . -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ingress.yaml
{{- template "common.ingress" . -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# service.yaml
{{- template "common.service" . -}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Common Labels
labels:
app: "egov-user-event"
group: "rainmaker"

# Ingress Configs
ingress:
enabled: true
zuul: true
context: "egov-user-event"

# Init Containers Configs
initContainers:
dbMigration:
enabled: true
schemaTable: "egov_user_event_schema_version"
image:
repository: "egov-user-event-db"

# Container Configs
image:
repository: "egov-user-event"
replicas: "1"
healthChecks:
enabled: true
livenessProbePath: "/egov-user-event/health"
readinessProbePath: "/egov-user-event/health"
appType: "java-spring"
tracing-enabled: true
heap: "-Xmx192m -Xms192m"
java-args: ""

# Additional Container Envs
env: |
- 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: SPRING_KAFKA_CONSUMER_GROUP_ID
value: egov-user-events
- 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_PERSISTER_SAVE_EVENTS
value: save-user-events
- name: KAFKA_TOPICS_PERSISTER_UPDATE_EVENTS
value: update-user-events
- name: KAFKA_TOPICS_LLT_DETAILS
value: user-events-llt
- name: KAFKA_TOPICS_SAVE_EVENTS
value: persist-user-events-async
- name: KAFKA_TOPICS_UPDATE_EVENTS
value: update-user-events-async
- name: MSEVA_NOTIF_SEARCH_OFFSET
value: "0"
- name: MSEVA_NOTIF_SEARCH_LIMIT
value: "200"
- name: JAVA_OPTS
value: {{ index .Values "heap" | quote }}
- name: SERVER_PORT
value: "8080"
- name: JAVA_ARGS
value: {{ index .Values "java-args" | quote }}
- name: JAVA_ENABLE_DEBUG
value: "true"
- name: SECURITY_BASIC_ENABLED
value: "false"
- name: MANAGEMENT_SECURITY_ENABLED
value: "false"
- name: EGOV_LOCALISATION_HOST
valueFrom:
configMapKeyRef:
name: egov-service-host
key: egov-localization
- name: EGOV_LOCALISATION_IS_STATELEVEL
value: "false"
- name: MSEVA_NOTIF_SEARCH_OFFSET
value: "0"
- name: MSEVA_NOTIF_SEARCH_LIMIT
value: "200"
{{- if index .Values "tracing-enabled" }}
- name: TRACER_OPENTRACING_ENABLED
value: "true"
{{- end }}
1 change: 1 addition & 0 deletions deploy-as-code/helm/environments/sanitation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ cluster-configs:
pgr-services: "http://pgr-services.egov:8080/"
birth-death-services: "http://birth-death-services.egov:8080/"
egov-pdf: "http://egov-pdf.egov:8080/"
egov-user-event: "http://egov-user-event.egov:8080/"
employee:
dashboard-url: "https://dashboard-pbuat.egovernments.org/s/w---s/app/kibana#/dashboard/4e687470-f3c7-11e8-8d09-b151e2b1cf8e?embed=true&_g=(refreshInterval%3A(pause%3A!f%2Cvalue%3A300000)%2Ctime%3A(from%3Anow-15m%2Cmode%3Aquick%2Cto%3Anow))"
custom-js-injection: |
Expand Down
1 change: 1 addition & 0 deletions deploy-as-code/helm/environments/unified-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ cluster-configs:
pgr-services: "http://pgr-services.egov:8080/"
birth-death-services: "http://birth-death-services.egov:8080/"
egov-pdf: "http://egov-pdf.egov:8080/"
egov-user-event: "http://egov-user-event.egov:8080/"
employee:
dashboard-url: "https://dashboard-pbuat.egovernments.org/s/w---s/app/kibana#/dashboard/4e687470-f3c7-11e8-8d09-b151e2b1cf8e?embed=true&_g=(refreshInterval%3A(pause%3A!f%2Cvalue%3A300000)%2Ctime%3A(from%3Anow-15m%2Cmode%3Aquick%2Cto%3Anow))"
custom-js-injection: |
Expand Down

0 comments on commit b18930c

Please sign in to comment.