Skip to content

Commit

Permalink
BAH-4117 | Add. Environment for ABDM V3 (#20)
Browse files Browse the repository at this point in the history
* BAH-4117 | Add. Environment for ABDM v3

* BAH-4117 | Fix. Ingress creation failure when crater is not enabled

* BAH-4117 | Add. Reports service on ABDM V3 Environment

* BAH-4117 | Fix. Connection String for Otp Service

* BAH-4117 | Fix. Database URL for hip-atomfeed service

* BAH-4117 | Fix. Database Host for hip-atomfeed service

* BAH-4117 | Fix. Set OpenMRS connection pool size

* BAH-4117 | Refactor. Use v3 image tags for abdm v3 environment
  • Loading branch information
mohan-13 authored Nov 26, 2024
1 parent 7d4c158 commit 864facd
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
default: dev
options:
- dev
- abdmv3
- qa
- demo
- performance
Expand Down
2 changes: 2 additions & 0 deletions templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ spec:
number: 80
{{- end }}

{{- if .Values.crater.enabled }}
- host: payments-{{ .Values.ingress.host }}
http:
paths:
Expand All @@ -113,6 +114,7 @@ spec:
port:
number: 80
{{- end }}
{{- end }}
---

apiVersion: networking.k8s.io/v1
Expand Down
139 changes: 139 additions & 0 deletions values/abdmv3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
global:
storageClass: bahmni-efs-sc
nodeSelector:
eks.amazonaws.com/nodegroup: nonprod
TZ: "Asia/Kolkata"

metadata:
labels:
environment: abdmv3
ingress:
PROXY_BODY_SIZE: "7m"
ABDM_PROXY_BODY_SIZE: "30m"

openmrs:
enabled: true
config:
LUCENE_MATCH_TYPE: "START"
OMRS_C3P0_MAX_SIZE: 20
bahmni-web:
enabled: true
bahmni-lab:
enabled: false
crater:
enabled: false
config:
AUTO_INSTALL: "true"
ADMIN_NAME: Super Man
COMPANY_NAME: Bahmni
COMPANY_SLUG: bahmni
COUNTRY_ID: 101
CRATER_DEFAULT_CURRENCY: INR
secrets:
ADMIN_EMAIL: "[email protected]"
reports:
enabled: true
config:
OPENMRS_HOST: "openmrs"
hiu:
enabled: true
config:
POSTGRES_HOST: "bahmni-abdmv3-postgresql"
RABBITMQ_HOST: "bahmni-abdmv3-rabbitmq"
HIU_ID: "Bahmni"
HIU_NAME: "Bahmni"

hiu-db:
enabled: true
config:
JAVA_TOOL_OPTIONS: "-Djdbc.url=jdbc:postgresql://bahmni-abdmv3-postgresql:5432/ -Djdbc.username=postgres -Djdbc.password=welcome -Djdbc.database=health_information_user"
hiu-ui:
enabled: true
config:
POSTGRES_HOST: bahmni-abdmv3-postgresql
RABBITMQ_HOST: bahmni-abdmv3-rabbitmq
hip:
enabled: true
image:
tag: "v3"
config:
CONNECTION_STRING: "Host=bahmni-abdmv3-postgresql;Port=5432;Username=postgres;Password=welcome;Database=hipservice"
RABBITMQ_HOST: "bahmni-abdmv3-rabbitmq"
BAHMNI_ID: "Bahmni"
otp-service:
enabled: true
config:
CONNECTION_STRING: "Host=bahmni-abdmv3-postgresql;Port=5432;Username=postgres;Password=welcome;Database=otpservice;"
hip-atomfeed:
enabled: true
config:
DATABASE_URL: "jdbc:postgresql://bahmni-abdmv3-postgresql:5432/"

postgresql:
enabled: true
volumePermissions:
enabled: true
primary:
persistence:
subPath: abdmv3
storageClass: bahmni-efs-sc
accessModes:
- ReadWriteMany
nodeSelector:
eks.amazonaws.com/nodegroup: nonprod
image:
tag: 14-debian-11

rabbitmq:
enabled: true
auth:
erlangCookie: bahmni
persistence:
storageClass: bahmni-efs-sc
accessModes:
- ReadWriteMany
nodeSelector:
eks.amazonaws.com/nodegroup: nonprod
image:
repository: rabbitmq
tag: alpine

patient-documents:
enabled: true
config:
OPENMRS_HOST: "openmrs"

crater-atomfeed:
enabled: false
metadata:
labels:
environment: abdmv3
appointments:
enabled: true

implementer-interface:
enabled: false

abha-verification:
enabled: true
image:
tag: "v3"

bahmni-metabase:
enabled: false
config:
MB_DB_TYPE: postgres
MB_DB_DBNAME: 'metabase'
MB_DB_PORT: 5432
MART_DB_NAME: martdb
secrets:
MB_ADMIN_FIRST_NAME: 'Admin'
MB_DB_HOST: 'bahmni-abdmv3-postgresql'
MART_DB_HOST: 'bahmni-abdmv3-postgresql'

bahmni-mart:
enabled: false
config:
MART_DB_NAME: martdb
secrets:
MART_DB_HOST: "bahmni-abdmv3-postgresql"
1 change: 1 addition & 0 deletions values/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ openmrs:
enabled: true
config:
LUCENE_MATCH_TYPE: "START"
OMRS_C3P0_MAX_SIZE: 20
bahmni-web:
enabled: true
bahmni-lab:
Expand Down

0 comments on commit 864facd

Please sign in to comment.