Skip to content
Open
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
23 changes: 23 additions & 0 deletions deploy/k8s/helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v2
name: finmind
description: FinMind — AI-powered personal finance manager (Flask + React + PostgreSQL + Redis)
type: application
version: 1.0.0
appVersion: "1.0.0"

keywords:
- finmind
- finance
- flask
- react
- postgresql

home: https://github.com/rohitdash08/FinMind
sources:
- https://github.com/rohitdash08/FinMind

maintainers:
- name: rohitdash08
url: https://github.com/rohitdash08

dependencies: []
56 changes: 56 additions & 0 deletions deploy/k8s/helm/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: finmind-config
namespace: {{ .Values.global.namespace }}
labels:
app.kubernetes.io/name: finmind
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
data:
LOG_LEVEL: {{ .Values.backend.env.LOG_LEVEL | quote }}
GEMINI_MODEL: {{ .Values.backend.env.GEMINI_MODEL | quote }}
REDIS_URL: "redis://redis:{{ .Values.redis.port }}/0"
DATABASE_URL: "postgresql://finmind:$(POSTGRES_PASSWORD)@postgres:{{ .Values.postgresql.port }}/{{ .Values.postgresql.database }}"
---
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-config
namespace: {{ .Values.global.namespace }}
labels:
app.kubernetes.io/name: finmind-nginx
app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
data:
default.conf: |
upstream backend {
server backend:{{ .Values.backend.port }};
}
server {
listen {{ .Values.nginx.port }};
server_name _;

location /api/ {
proxy_pass http://backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 60s;
proxy_connect_timeout 10s;
}

location /health {
proxy_pass http://backend/health;
}

location /metrics {
proxy_pass http://backend/metrics;
}

location / {
proxy_pass http://frontend:{{ .Values.frontend.port }};
proxy_set_header Host $host;
}
}
Loading