From 1ca914aed2b6e0d6a5b3d5e3d06691837c0ffd71 Mon Sep 17 00:00:00 2001 From: nitish-egov <137176807+nitish-egov@users.noreply.github.com> Date: Mon, 11 Aug 2025 21:05:42 +0530 Subject: [PATCH 1/2] added helm for metabase --- .../health-services/metabase/Chart.yaml | 11 +++ .../metabase/templates/deployment.yaml | 2 + .../metabase/templates/ingress.yaml | 2 + .../metabase/templates/service.yaml | 2 + .../health-services/metabase/values.yaml | 68 +++++++++++++++++++ 5 files changed, 85 insertions(+) create mode 100644 config-as-code/helm/charts/health-services/metabase/Chart.yaml create mode 100644 config-as-code/helm/charts/health-services/metabase/templates/deployment.yaml create mode 100644 config-as-code/helm/charts/health-services/metabase/templates/ingress.yaml create mode 100644 config-as-code/helm/charts/health-services/metabase/templates/service.yaml create mode 100644 config-as-code/helm/charts/health-services/metabase/values.yaml diff --git a/config-as-code/helm/charts/health-services/metabase/Chart.yaml b/config-as-code/helm/charts/health-services/metabase/Chart.yaml new file mode 100644 index 000000000..7a7863ea2 --- /dev/null +++ b/config-as-code/helm/charts/health-services/metabase/Chart.yaml @@ -0,0 +1,11 @@ +apiVersion: v2 +name: metabase +description: Metabase Helm chart for DIGIT dev environment +type: application +version: 0.1.0 +appVersion: "v0.55.10.3" + +dependencies: +- name: common + version: 0.0.5 + repository: file://../../common diff --git a/config-as-code/helm/charts/health-services/metabase/templates/deployment.yaml b/config-as-code/helm/charts/health-services/metabase/templates/deployment.yaml new file mode 100644 index 000000000..3455c0005 --- /dev/null +++ b/config-as-code/helm/charts/health-services/metabase/templates/deployment.yaml @@ -0,0 +1,2 @@ +# deployment.yaml +{{- template "common.deployment" . -}} \ No newline at end of file diff --git a/config-as-code/helm/charts/health-services/metabase/templates/ingress.yaml b/config-as-code/helm/charts/health-services/metabase/templates/ingress.yaml new file mode 100644 index 000000000..9a573c0d7 --- /dev/null +++ b/config-as-code/helm/charts/health-services/metabase/templates/ingress.yaml @@ -0,0 +1,2 @@ +# ingress.yaml +{{- template "common.ingress" . -}} \ No newline at end of file diff --git a/config-as-code/helm/charts/health-services/metabase/templates/service.yaml b/config-as-code/helm/charts/health-services/metabase/templates/service.yaml new file mode 100644 index 000000000..735644576 --- /dev/null +++ b/config-as-code/helm/charts/health-services/metabase/templates/service.yaml @@ -0,0 +1,2 @@ +# service.yaml +{{- template "common.service" . -}} \ No newline at end of file diff --git a/config-as-code/helm/charts/health-services/metabase/values.yaml b/config-as-code/helm/charts/health-services/metabase/values.yaml new file mode 100644 index 000000000..5670cb184 --- /dev/null +++ b/config-as-code/helm/charts/health-services/metabase/values.yaml @@ -0,0 +1,68 @@ +# Common Labels +labels: + app: "metabase" + group: "analytics" + +namespace: health + +# Ingress Configs +ingress: + namespace: egov + enabled: true + zuul: true + context: "metabase" + +# Container Configs +image: + repository: metabase/metabase + tag: v0.55.10.3 +replicas: 1 +healthChecks: + enabled: true + livenessProbePath: "/api/health" + readinessProbePath: "/api/health" +appType: "java-spring" +tracing-enabled: false +httpPort: 3000 + +# Environment Variables +env: | + - name: MB_DB_TYPE + value: "postgres" + - name: MB_DB_HOST + valueFrom: + configMapKeyRef: + name: egov-config + key: db-host + - name: MB_DB_PORT + value: "5432" + - name: MB_DB_USER + valueFrom: + secretKeyRef: + name: db + key: username + - name: MB_DB_PASS + valueFrom: + secretKeyRef: + name: db + key: password + - name: MB_DB_DBNAME + valueFrom: + configMapKeyRef: + name: egov-config + key: db-name + - name: JAVA_TIMEZONE + valueFrom: + configMapKeyRef: + key: timezone + name: egov-config + - name: MB_SAMPLE_DATA_ENABLED + value: "false" + +resources: | + limits: + memory: 1024Mi + requests: + memory: 512Mi + +# Service will be auto-configured based on httpPort From fb701ad8463da0e5aa1adc3853f602fc16f41e03 Mon Sep 17 00:00:00 2001 From: nitish-egov <137176807+nitish-egov@users.noreply.github.com> Date: Tue, 12 Aug 2025 15:04:58 +0530 Subject: [PATCH 2/2] updated config --- config-as-code/environments/egov-demo.yaml | 10 ++++++++++ .../helm/charts/health-services/metabase/values.yaml | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/config-as-code/environments/egov-demo.yaml b/config-as-code/environments/egov-demo.yaml index 415258ce6..e86197d15 100644 --- a/config-as-code/environments/egov-demo.yaml +++ b/config-as-code/environments/egov-demo.yaml @@ -176,6 +176,16 @@ egov-idgen: memory_limits: 512Mi autocreate-new-seq: "true" +# Metabase Configuration +metabase: + image: + tag: 'v0.55.10.3' + httpPort: 3000 + healthChecks: + enabled: true + livenessProbePath: "/api/health" + readinessProbePath: "/api/health" + egov-notification-sms: sms-provider-url: "sms provider url" ## Add sms provider url sms.provider.class: "Generic" diff --git a/config-as-code/helm/charts/health-services/metabase/values.yaml b/config-as-code/helm/charts/health-services/metabase/values.yaml index 5670cb184..647bb21fc 100644 --- a/config-as-code/helm/charts/health-services/metabase/values.yaml +++ b/config-as-code/helm/charts/health-services/metabase/values.yaml @@ -3,7 +3,7 @@ labels: app: "metabase" group: "analytics" -namespace: health +namespace: egov # Ingress Configs ingress: