Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added new healm charts for health namespace #2193

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions deploy-as-code/helm/charts/common/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,19 @@ initContainers:
tag: latest
env: |
- name: "DB_URL"
valueFrom:
configMapKeyRef:
value: {{- if eq .Values.namespace "health" }}
valueFrom:
configMapKeyRef:
name: egov-config
key: db-url
key: health-db-url
{{- else }}
valueFrom:
configMapKeyRef:
name: egov-config
key: db-url
{{- end }}
- name: "SCHEMA_TABLE"
value: {{ .Values.initContainers.dbMigration.schemaTable | quote }}
value: {{ .Values.initContainers.dbMigration.schemaTable | quote }}
- name: "FLYWAY_USER"
valueFrom:
secretKeyRef:
Expand Down
Original file line number Diff line number Diff line change
@@ -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
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,128 @@
# Common Labels
labels:
app: "health-attendance"
group: "digit-works"

namespace: health

# Ingress Configs
ingress:
namespace: egov
enabled: true
zuul: true
context: "health-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_SERVLET_CONTEXT_PATH
value: "/health-attendance"
- name: SERVER_PORT
value: "8080"
- 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 }}
Original file line number Diff line number Diff line change
@@ -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
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,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: SERVER_SERVLET_CONTEXT_PATH
value: "/health-individual"
- name: SPRING_KAFKA_CONSUMER_GROUP_ID
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 }}
Loading