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/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..647bb21fc --- /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: egov + +# 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