Skip to content

Open-source personal finance manager. Self-hosted, privacy-first.

feat(helm) implemented helmchart (#385)

jorishaenseler154a816cf01230
diff --git a/charts/securo/.helmignore b/charts/securo/.helmignore
new file mode 100644
index 00000000..0e8a0eb3
--- /dev/null
+++ b/charts/securo/.helmignore
@@ -0,0 +1,23 @@
+# Patterns to ignore when building packages.
+# This supports shell glob matching, relative path matching, and
+# negation (prefixed with !). Only one pattern per line.
+.DS_Store
+# Common VCS dirs
+.git/
+.gitignore
+.bzr/
+.bzrignore
+.hg/
+.hgignore
+.svn/
+# Common backup files
+*.swp
+*.bak
+*.tmp
+*.orig
+*~
+# Various IDEs
+.project
+.idea/
+*.tmproj
+.vscode/
diff --git a/charts/securo/Chart.yaml b/charts/securo/Chart.yaml
new file mode 100644
index 00000000..87d92071
--- /dev/null
+++ b/charts/securo/Chart.yaml
@@ -0,0 +1,7 @@
+apiVersion: v2
+name: securo
+description: A Helm chart for Securo Finance, an open-source personal finance application.
+type: application
+version: 0.1.0
+appVersion: "latest"
+icon: https://raw.githubusercontent.com/securo-finance/securo/main/frontend/public/favicon.ico
diff --git a/charts/securo/README.md b/charts/securo/README.md
new file mode 100644
index 00000000..565e79cd
--- /dev/null
+++ b/charts/securo/README.md
@@ -0,0 +1,59 @@
+# Securo Helm Chart
+
+[Securo](https://github.com/securo-finance/securo) is an advanced, self-hosted personal finance manager with built-in AI agents. This Helm chart provides a complete, production-ready deployment of Securo to any Kubernetes cluster.
+
+## Features
+
+- **Complete Application Stack**: Deploys the Next.js React frontend and FastAPI backend, fully supporting all features including Open Banking integrations, OIDC authentication, and AI financial agents.
+- **Asynchronous Task Scheduler**: Runs Celery workers and a Celery beat singleton for automated background processing (such as bank syncs, recurring transactions, and exchange rate updates).
+- **Databases**: Easily configure connections to your external PostgreSQL and Redis instances.
+- **Gateway API & Ingress**: Native support for standard Kubernetes Ingress or the modern Kubernetes Gateway API (`HTTPRoute`).
+
+## Prerequisites
+
+- Kubernetes 1.25+
+- Helm 3.2.0+
+- PostgreSQL 15+ (with the `pgvector` extension installed)
+- Redis 7+
+- Persistent Volume (PV) provisioner support in the underlying infrastructure
+
+### Persistent Storage Requirements
+Since the Backend, Celery Worker, and MCP Server all share the same files (like uploaded attachments and AI knowledge bases), they all mount the same Persistent Volume Claims concurrently.
+**If your cluster spans multiple nodes, you MUST use a StorageClass that supports `ReadWriteMany` (RWX) access mode (e.g., NFS, CephFS, or Longhorn RWX).**
+If your storage only supports `ReadWriteOnce` (RWO), you must restrict all Securo pods to run on a single node (using `nodeSelector` or `podAffinity`) but that is an antipattern in Kubernetes.
+
+## Quickstart
+
+If you are installing locally from the source repository:
+
+```bash
+helm install securo ./charts/securo
+```
+
+## Configuration
+
+All application-level features (such as AI Services, OIDC authentication, and Open Banking integrations) can be configured directly through Helm.
+The keys in the `config:` and `secret:` blocks of the `values.yaml` map directly to the `UPPER_SNAKE_CASE` environment variables used in the standard Docker setup (converted to `camelCase`).
+
+For a full list of available environment variables and API keys, please refer to the **[Securo Application Configuration Guide](https://github.com/securo-finance/securo-docs)**.
+
+### Secrets Management (Production)
+
+For production deployments, we highly recommend managing your secrets securely by passing an existing Kubernetes `Secret` rather than putting plain text keys in your `values.yaml`:
+
+```yaml
+global:
+ existingSecret: "my-securo-secrets"
+```
+
+The secret must contain the corresponding keys (e.g., `secretKey`, `databaseUrl`, `agentsOpenaiApiKey`).
+
+## Uninstalling the Chart
+
+To uninstall/delete the `securo` deployment:
+
+```bash
+helm uninstall securo
+```
+
+This command removes all the Kubernetes components associated with the chart and deletes the release. Note that Persistent Volume Claims (PVCs) created by the chart might not be deleted automatically to prevent accidental data loss.
diff --git a/charts/securo/templates/NOTES.txt b/charts/securo/templates/NOTES.txt
new file mode 100644
index 00000000..5f4f1197
--- /dev/null
+++ b/charts/securo/templates/NOTES.txt
@@ -0,0 +1,52 @@
+Thank you for installing the Securo Helm Chart!
+
+================================================================================
+1. Accessing Your Application
+================================================================================
+
+{{- if or .Values.ingress.enabled .Values.httpRoute.enabled }}
+Your application is configured to be available at:
+ {{ include "securo.frontendUrl" . }}
+
+If DNS is not yet configured (e.g., in local environments), ensure your `/etc/hosts`
+file or DNS server points {{ .Values.global.domain }} to your Ingress/Gateway controller's IP.
+
+{{- else if eq .Values.frontend.service.type "NodePort" }}
+Your frontend service is exposed on a NodePort. You can access the application by getting the Node IP and the assigned NodePort:
+
+ export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "securo.fullname" . }}-frontend)
+ export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
+ echo "Visit http://$NODE_IP:$NODE_PORT"
+
+{{- else if eq .Values.frontend.service.type "LoadBalancer" }}
+Your frontend service is exposed via a LoadBalancer. It may take a few minutes for the IP to become available.
+
+ export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "securo.fullname" . }}-frontend --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.ip}}{{ end }}"}}")
+ echo "Visit http://$SERVICE_IP:{{ .Values.frontend.service.port }}"
+
+{{- else }}
+Your frontend service is exposed internally via ClusterIP.
+You can access it locally by setting up a port-forward:
+
+ export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "securo.name" . }},app.kubernetes.io/component=frontend,app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
+ kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:3000
+
+Then open http://127.0.0.1:8080 in your browser.
+{{- end }}
+
+================================================================================
+2. Configuration & Features
+================================================================================
+
+Securo includes advanced features like AI Agents, OIDC authentication, and Open Banking.
+These can be configured by providing the necessary API keys in your `values.yaml` or an existing Kubernetes `Secret`.
+
+For detailed configuration instructions, please refer to the official documentation:
+ https://github.com/securo-finance/securo-docs
+
+================================================================================
+3. Check Deployment Status
+================================================================================
+
+You can watch the status of your pods by running:
+ kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/instance={{ .Release.Name }}" -w
diff --git a/charts/securo/templates/_helpers.tpl b/charts/securo/templates/_helpers.tpl
new file mode 100644
index 00000000..28786fb4
--- /dev/null
+++ b/charts/securo/templates/_helpers.tpl
@@ -0,0 +1,79 @@
+{{/*
+Expand the name of the chart.
+*/}}
+{{- define "securo.name" -}}
+{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
+{{- end }}
+
+{{/*
+Create a default fully qualified app name.
+*/}}
+{{- define "securo.fullname" -}}
+{{- if .Values.fullnameOverride }}
+{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
+{{- else }}
+{{- $name := default .Chart.Name .Values.nameOverride }}
+{{- if contains $name .Release.Name }}
+{{- .Release.Name | trunc 63 | trimSuffix "-" }}
+{{- else }}
+{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
+{{- end }}
+{{- end }}
+{{- end }}
+
+{{/*
+Common labels
+*/}}
+{{- define "securo.labels" -}}
+helm.sh/chart: {{ include "securo.chart" . }}
+app.kubernetes.io/name: {{ include "securo.name" . }}
+app.kubernetes.io/instance: {{ .Release.Name }}
+{{- if .Chart.AppVersion }}
+app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
+{{- end }}
+app.kubernetes.io/managed-by: {{ .Release.Service }}
+{{- end }}
+
+{{/*
+Selector labels
+*/}}
+{{- define "securo.selectorLabels" -}}
+app.kubernetes.io/name: {{ include "securo.name" . }}
+app.kubernetes.io/instance: {{ .Release.Name }}
+{{- end }}
+
+{{/*
+Create chart name and version as used by the chart label.
+*/}}
+{{- define "securo.chart" -}}
+{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
+{{- end }}
+
+{{/*
+Create the name of the service account to use
+*/}}
+{{- define "securo.serviceAccountName" -}}
+{{- if .Values.serviceAccount.create }}
+{{- default (include "securo.fullname" .) .Values.serviceAccount.name }}
+{{- else }}
+{{- default "default" .Values.serviceAccount.name }}
+{{- end }}
+{{- end }}
+
+{{/*
+Compute the frontend URL based on global.domain and global.tls
+*/}}
+{{- define "securo.frontendUrl" -}}
+{{- if .Values.global.tls -}}
+https://{{ .Values.global.domain }}
+{{- else -}}
+http://{{ .Values.global.domain }}
+{{- end -}}
+{{- end -}}
+
+{{/*
+Compute the default OAuth Redirect URI
+*/}}
+{{- define "securo.oauthRedirectUri" -}}
+{{ include "securo.frontendUrl" . }}/oauth/callback
+{{- end -}}
diff --git a/charts/securo/templates/backend/deployment.yaml b/charts/securo/templates/backend/deployment.yaml
new file mode 100644
index 00000000..746b8d16
--- /dev/null
+++ b/charts/securo/templates/backend/deployment.yaml
@@ -0,0 +1,92 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ include "securo.fullname" . }}-backend
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ app.kubernetes.io/component: backend
+spec:
+ {{- if not .Values.autoscaling.enabled }}
+ replicas: {{ .Values.backend.replicaCount }}
+ {{- end }}
+ selector:
+ matchLabels:
+ {{- include "securo.selectorLabels" . | nindent 6 }}
+ app.kubernetes.io/component: backend
+ template:
+ metadata:
+ annotations:
+ checksum/config: {{ include (print $.Template.BasePath "/common/configmap.yaml") . | sha256sum }}
+ labels:
+ {{- include "securo.selectorLabels" . | nindent 8 }}
+ app.kubernetes.io/component: backend
+ spec:
+ containers:
+ - name: backend
+ image: "{{ .Values.backend.image.repository }}:{{ .Values.backend.image.tag }}"
+ imagePullPolicy: {{ .Values.backend.image.pullPolicy }}
+ command:
+ - uvicorn
+ - app.main:app
+ - --host
+ - 0.0.0.0
+ - --port
+ - "8000"
+ ports:
+ - name: http
+ containerPort: 8000
+ protocol: TCP
+ livenessProbe:
+ httpGet:
+ path: /api/health
+ port: 8000
+ initialDelaySeconds: 15
+ periodSeconds: 20
+ readinessProbe:
+ httpGet:
+ path: /api/health
+ port: 8000
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ envFrom:
+ - configMapRef:
+ name: {{ include "securo.fullname" . }}-config
+ - secretRef:
+ {{- if .Values.global.existingSecret }}
+ name: {{ .Values.global.existingSecret }}
+ {{- else }}
+ name: {{ include "securo.fullname" . }}-secrets
+ {{- end }}
+ volumeMounts:
+ {{- if .Values.persistence.attachments.enabled }}
+ - name: attachments
+ mountPath: /app/data/attachments
+ {{- end }}
+ {{- if and (eq (.Values.config.agentsEnabled | toString) "true") .Values.persistence.agentKnowledge.enabled }}
+ - name: agent-knowledge
+ mountPath: /app/data/agent_knowledge
+ {{- end }}
+ {{- if and (eq (.Values.config.agentsEnabled | toString) "true") .Values.persistence.agentEmbeddingModels.enabled }}
+ - name: agent-embedding-models
+ mountPath: /app/data/embedding_models
+ {{- end }}
+ {{- if .Values.backend.resources }}
+ resources:
+ {{- toYaml .Values.backend.resources | nindent 12 }}
+ {{- end }}
+ volumes:
+ {{- if .Values.persistence.attachments.enabled }}
+ - name: attachments
+ persistentVolumeClaim:
+ claimName: {{ include "securo.fullname" . }}-attachments
+ {{- end }}
+ {{- if and (eq (.Values.config.agentsEnabled | toString) "true") .Values.persistence.agentKnowledge.enabled }}
+ - name: agent-knowledge
+ persistentVolumeClaim:
+ claimName: {{ include "securo.fullname" . }}-agent-knowledge
+ {{- end }}
+ {{- if and (eq (.Values.config.agentsEnabled | toString) "true") .Values.persistence.agentEmbeddingModels.enabled }}
+ - name: agent-embedding-models
+ persistentVolumeClaim:
+ claimName: {{ include "securo.fullname" . }}-agent-embedding-models
+ {{- end }}
diff --git a/charts/securo/templates/backend/job-migration.yaml b/charts/securo/templates/backend/job-migration.yaml
new file mode 100644
index 00000000..0d6f18a8
--- /dev/null
+++ b/charts/securo/templates/backend/job-migration.yaml
@@ -0,0 +1,51 @@
+apiVersion: batch/v1
+kind: Job
+metadata:
+ name: {{ include "securo.fullname" . }}-migration
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ app.kubernetes.io/component: migration
+ annotations:
+ "helm.sh/hook": post-install,post-upgrade
+ "helm.sh/hook-weight": "5"
+ "helm.sh/hook-delete-policy": hook-succeeded
+spec:
+ template:
+ metadata:
+ labels:
+ {{- include "securo.selectorLabels" . | nindent 8 }}
+ app.kubernetes.io/component: migration
+ spec:
+ restartPolicy: OnFailure
+ containers:
+ - name: migration
+ image: "{{ .Values.backend.image.repository }}:{{ .Values.backend.image.tag }}"
+ imagePullPolicy: {{ .Values.backend.image.pullPolicy }}
+ command:
+ - sh
+ - -c
+ - |
+ echo "Starting database migration..."
+ for i in $(seq 1 30); do
+ if alembic upgrade head; then
+ echo "Migration successful."
+ exit 0
+ fi
+ echo "Migration failed (database might not be ready). Retrying in 5 seconds..."
+ sleep 5
+ done
+ echo "Migration failed after multiple retries."
+ exit 1
+ envFrom:
+ - configMapRef:
+ name: {{ include "securo.fullname" . }}-config
+ - secretRef:
+ {{- if .Values.global.existingSecret }}
+ name: {{ .Values.global.existingSecret }}
+ {{- else }}
+ name: {{ include "securo.fullname" . }}-secrets
+ {{- end }}
+ {{- if .Values.backend.resources }}
+ resources:
+ {{- toYaml .Values.backend.resources | nindent 12 }}
+ {{- end }}
diff --git a/charts/securo/templates/backend/service.yaml b/charts/securo/templates/backend/service.yaml
new file mode 100644
index 00000000..7606d499
--- /dev/null
+++ b/charts/securo/templates/backend/service.yaml
@@ -0,0 +1,17 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "securo.fullname" . }}-backend
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ app.kubernetes.io/component: backend
+spec:
+ type: {{ .Values.backend.service.type }}
+ ports:
+ - port: {{ .Values.backend.service.port }}
+ targetPort: http
+ protocol: TCP
+ name: http
+ selector:
+ {{- include "securo.selectorLabels" . | nindent 4 }}
+ app.kubernetes.io/component: backend
diff --git a/charts/securo/templates/beat/deployment.yaml b/charts/securo/templates/beat/deployment.yaml
new file mode 100644
index 00000000..17f163ea
--- /dev/null
+++ b/charts/securo/templates/beat/deployment.yaml
@@ -0,0 +1,75 @@
+{{- if .Values.celeryBeat.enabled }}
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ include "securo.fullname" . }}-beat
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ app.kubernetes.io/component: celery-beat
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ {{- include "securo.selectorLabels" . | nindent 6 }}
+ app.kubernetes.io/component: celery-beat
+ template:
+ metadata:
+ annotations:
+ checksum/config: {{ include (print $.Template.BasePath "/common/configmap.yaml") . | sha256sum }}
+ labels:
+ {{- include "securo.selectorLabels" . | nindent 8 }}
+ app.kubernetes.io/component: celery-beat
+ spec:
+ containers:
+ - name: celery-beat
+ image: "{{ .Values.backend.image.repository }}:{{ .Values.backend.image.tag }}"
+ imagePullPolicy: {{ .Values.celeryBeat.image.pullPolicy }}
+ command:
+ - celery
+ - -A
+ - app.worker
+ - beat
+ - --loglevel=info
+ envFrom:
+ - configMapRef:
+ name: {{ include "securo.fullname" . }}-config
+ - secretRef:
+ {{- if .Values.global.existingSecret }}
+ name: {{ .Values.global.existingSecret }}
+ {{- else }}
+ name: {{ include "securo.fullname" . }}-secrets
+ {{- end }}
+ volumeMounts:
+ {{- if .Values.persistence.attachments.enabled }}
+ - name: attachments
+ mountPath: /app/data/attachments
+ {{- end }}
+ {{- if .Values.persistence.agentKnowledge.enabled }}
+ - name: agent-knowledge
+ mountPath: /app/data/agent_knowledge
+ {{- end }}
+ {{- if .Values.persistence.agentEmbeddingModels.enabled }}
+ - name: agent-embedding-models
+ mountPath: /app/data/embedding_models
+ {{- end }}
+ {{- if .Values.celeryBeat.resources }}
+ resources:
+ {{- toYaml .Values.celeryBeat.resources | nindent 12 }}
+ {{- end }}
+ volumes:
+ {{- if .Values.persistence.attachments.enabled }}
+ - name: attachments
+ persistentVolumeClaim:
+ claimName: {{ include "securo.fullname" . }}-attachments
+ {{- end }}
+ {{- if .Values.persistence.agentKnowledge.enabled }}
+ - name: agent-knowledge
+ persistentVolumeClaim:
+ claimName: {{ include "securo.fullname" . }}-agent-knowledge
+ {{- end }}
+ {{- if .Values.persistence.agentEmbeddingModels.enabled }}
+ - name: agent-embedding-models
+ persistentVolumeClaim:
+ claimName: {{ include "securo.fullname" . }}-agent-embedding-models
+ {{- end }}
+{{- end }}
diff --git a/charts/securo/templates/common/configmap.yaml b/charts/securo/templates/common/configmap.yaml
new file mode 100644
index 00000000..fce9a009
--- /dev/null
+++ b/charts/securo/templates/common/configmap.yaml
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: {{ include "securo.fullname" . }}-config
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+data:
+ FRONTEND_URL: {{ include "securo.frontendUrl" . | quote }}
+ PLUGGY_OAUTH_REDIRECT_URI: {{ default (include "securo.oauthRedirectUri" .) .Values.config.pluggyOauthRedirectUri | quote }}
+ ENABLE_BANKING_OAUTH_REDIRECT_URI: {{ default (include "securo.oauthRedirectUri" .) .Values.config.enableBankingOauthRedirectUri | quote }}
+ {{- range $key, $value := .Values.config }}
+ {{- if and (ne $key "pluggyOauthRedirectUri") (ne $key "enableBankingOauthRedirectUri") }}
+ {{ $key | snakecase | upper }}: {{ tpl (print $value) $ | quote }}
+ {{- end }}
+ {{- end }}
diff --git a/charts/securo/templates/common/hpa.yaml b/charts/securo/templates/common/hpa.yaml
new file mode 100644
index 00000000..1e73b3ea
--- /dev/null
+++ b/charts/securo/templates/common/hpa.yaml
@@ -0,0 +1,44 @@
+{{- if .Values.autoscaling.enabled }}
+{{- range $component := list "backend" "frontend" "worker" "mcp-server" }}
+{{- $componentEnabled := true }}
+{{- if eq $component "worker" }}
+ {{- $componentEnabled = $.Values.celeryWorker.enabled }}
+{{- else if eq $component "mcp-server" }}
+ {{- $componentEnabled = $.Values.mcpServer.enabled }}
+{{- end }}
+{{- if $componentEnabled }}
+apiVersion: autoscaling/v2
+kind: HorizontalPodAutoscaler
+metadata:
+ name: {{ include "securo.fullname" $ }}-{{ $component }}
+ labels:
+ {{- include "securo.labels" $ | nindent 4 }}
+ app.kubernetes.io/component: {{ $component }}
+spec:
+ scaleTargetRef:
+ apiVersion: apps/v1
+ kind: Deployment
+ name: {{ include "securo.fullname" $ }}-{{ $component }}
+ minReplicas: {{ $.Values.autoscaling.minReplicas }}
+ maxReplicas: {{ $.Values.autoscaling.maxReplicas }}
+ metrics:
+ {{- if $.Values.autoscaling.targetCPUUtilizationPercentage }}
+ - type: Resource
+ resource:
+ name: cpu
+ target:
+ type: Utilization
+ averageUtilization: {{ $.Values.autoscaling.targetCPUUtilizationPercentage }}
+ {{- end }}
+ {{- if $.Values.autoscaling.targetMemoryUtilizationPercentage }}
+ - type: Resource
+ resource:
+ name: memory
+ target:
+ type: Utilization
+ averageUtilization: {{ $.Values.autoscaling.targetMemoryUtilizationPercentage }}
+ {{- end }}
+---
+{{- end }}
+{{- end }}
+{{- end }}
diff --git a/charts/securo/templates/common/httproute.yaml b/charts/securo/templates/common/httproute.yaml
new file mode 100644
index 00000000..0181d317
--- /dev/null
+++ b/charts/securo/templates/common/httproute.yaml
@@ -0,0 +1,30 @@
+{{- if .Values.httpRoute.enabled -}}
+apiVersion: gateway.networking.k8s.io/v1
+kind: HTTPRoute
+metadata:
+ name: {{ include "securo.fullname" . }}
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+spec:
+ parentRefs:
+ {{- toYaml .Values.httpRoute.parentRefs | nindent 4 }}
+ hostnames:
+ - {{ .Values.global.domain | quote }}
+ rules:
+ - matches:
+ - path:
+ type: PathPrefix
+ value: /
+ backendRefs:
+ - name: {{ include "securo.fullname" . }}-frontend
+ port: {{ .Values.frontend.service.port }}
+ {{- if .Values.mcpServer.enabled }}
+ - matches:
+ - path:
+ type: PathPrefix
+ value: /mcp
+ backendRefs:
+ - name: {{ include "securo.fullname" . }}-mcp-server
+ port: {{ .Values.mcpServer.service.port }}
+ {{- end }}
+{{- end }}
diff --git a/charts/securo/templates/common/ingress.yaml b/charts/securo/templates/common/ingress.yaml
new file mode 100644
index 00000000..42981982
--- /dev/null
+++ b/charts/securo/templates/common/ingress.yaml
@@ -0,0 +1,46 @@
+{{- if .Values.ingress.enabled -}}
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ name: {{ include "securo.fullname" . }}
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ {{- with .Values.ingress.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
+spec:
+ {{- if .Values.ingress.className }}
+ ingressClassName: {{ .Values.ingress.className }}
+ {{- end }}
+ {{- if .Values.ingress.tls }}
+ tls:
+ {{- range .Values.ingress.tls }}
+ - hosts:
+ {{- range .hosts }}
+ - {{ . | quote }}
+ {{- end }}
+ secretName: {{ .secretName }}
+ {{- end }}
+ {{- end }}
+ rules:
+ - host: {{ .Values.global.domain | quote }}
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: {{ include "securo.fullname" $ }}-frontend
+ port:
+ name: http
+ {{- if $.Values.mcpServer.enabled }}
+ - path: /mcp
+ pathType: Prefix
+ backend:
+ service:
+ name: {{ include "securo.fullname" $ }}-mcp-server
+ port:
+ name: http
+ {{- end }}
+{{- end }}
diff --git a/charts/securo/templates/common/pvc-agent-embedding-models.yaml b/charts/securo/templates/common/pvc-agent-embedding-models.yaml
new file mode 100644
index 00000000..cac61bad
--- /dev/null
+++ b/charts/securo/templates/common/pvc-agent-embedding-models.yaml
@@ -0,0 +1,21 @@
+{{- if and (eq (.Values.config.agentsEnabled | toString) "true") .Values.persistence.agentEmbeddingModels.enabled }}
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: {{ include "securo.fullname" . }}-agent-embedding-models
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+spec:
+ accessModes:
+ - {{ .Values.persistence.agentEmbeddingModels.accessMode | quote }}
+ resources:
+ requests:
+ storage: {{ .Values.persistence.agentEmbeddingModels.size | quote }}
+ {{- if .Values.persistence.agentEmbeddingModels.storageClass }}
+ {{- if (eq "-" .Values.persistence.agentEmbeddingModels.storageClass) }}
+ storageClassName: ""
+ {{- else }}
+ storageClassName: "{{ .Values.persistence.agentEmbeddingModels.storageClass }}"
+ {{- end }}
+ {{- end }}
+{{- end }}
diff --git a/charts/securo/templates/common/pvc-agent-knowledge.yaml b/charts/securo/templates/common/pvc-agent-knowledge.yaml
new file mode 100644
index 00000000..b1eed737
--- /dev/null
+++ b/charts/securo/templates/common/pvc-agent-knowledge.yaml
@@ -0,0 +1,21 @@
+{{- if and (eq (.Values.config.agentsEnabled | toString) "true") .Values.persistence.agentKnowledge.enabled }}
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: {{ include "securo.fullname" . }}-agent-knowledge
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+spec:
+ accessModes:
+ - {{ .Values.persistence.agentKnowledge.accessMode | quote }}
+ resources:
+ requests:
+ storage: {{ .Values.persistence.agentKnowledge.size | quote }}
+ {{- if .Values.persistence.agentKnowledge.storageClass }}
+ {{- if (eq "-" .Values.persistence.agentKnowledge.storageClass) }}
+ storageClassName: ""
+ {{- else }}
+ storageClassName: "{{ .Values.persistence.agentKnowledge.storageClass }}"
+ {{- end }}
+ {{- end }}
+{{- end }}
diff --git a/charts/securo/templates/common/pvc-attachments.yaml b/charts/securo/templates/common/pvc-attachments.yaml
new file mode 100644
index 00000000..f43b0495
--- /dev/null
+++ b/charts/securo/templates/common/pvc-attachments.yaml
@@ -0,0 +1,21 @@
+{{- if .Values.persistence.attachments.enabled }}
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+ name: {{ include "securo.fullname" . }}-attachments
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+spec:
+ accessModes:
+ - {{ .Values.persistence.attachments.accessMode | quote }}
+ resources:
+ requests:
+ storage: {{ .Values.persistence.attachments.size | quote }}
+ {{- if .Values.persistence.attachments.storageClass }}
+ {{- if (eq "-" .Values.persistence.attachments.storageClass) }}
+ storageClassName: ""
+ {{- else }}
+ storageClassName: "{{ .Values.persistence.attachments.storageClass }}"
+ {{- end }}
+ {{- end }}
+{{- end }}
diff --git a/charts/securo/templates/common/secret.yaml b/charts/securo/templates/common/secret.yaml
new file mode 100644
index 00000000..4a72c762
--- /dev/null
+++ b/charts/securo/templates/common/secret.yaml
@@ -0,0 +1,15 @@
+{{- if not .Values.global.existingSecret }}
+apiVersion: v1
+kind: Secret
+metadata:
+ name: {{ include "securo.fullname" . }}-secrets
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+type: Opaque
+data:
+ {{- range $key, $value := .Values.secret }}
+ {{- if $value }}
+ {{ $key | snakecase | upper }}: {{ tpl (print $value) $ | b64enc | quote }}
+ {{- end }}
+ {{- end }}
+{{- end }}
diff --git a/charts/securo/templates/common/serviceaccount.yaml b/charts/securo/templates/common/serviceaccount.yaml
new file mode 100644
index 00000000..16caae9f
--- /dev/null
+++ b/charts/securo/templates/common/serviceaccount.yaml
@@ -0,0 +1,14 @@
+{{- if .Values.serviceAccount.create -}}
+apiVersion: v1
+kind: ServiceAccount
+metadata:
+ name: {{ include "securo.serviceAccountName" . }}
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ {{- with .Values.serviceAccount.annotations }}
+ annotations:
+ {{- toYaml . | nindent 4 }}
+ {{- end }}
+automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
+{{- end }}
+
diff --git a/charts/securo/templates/frontend/configmap-nginx.yaml b/charts/securo/templates/frontend/configmap-nginx.yaml
new file mode 100644
index 00000000..b0317828
--- /dev/null
+++ b/charts/securo/templates/frontend/configmap-nginx.yaml
@@ -0,0 +1,34 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: {{ include "securo.fullname" . }}-frontend-nginx
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ app.kubernetes.io/component: frontend
+data:
+ default.conf.template: |
+ server {
+ listen 8080;
+ root /usr/share/nginx/html;
+ index index.html;
+
+ # API proxy to backend.
+ location /api/ {
+ proxy_pass ${BACKEND_URL};
+ 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;
+ }
+
+ # Never cache index.html so new deployments are always picked up immediately
+ location = /index.html {
+ add_header Cache-Control "no-store, no-cache, must-revalidate";
+ try_files $uri =404;
+ }
+
+ # SPA fallback — serve index.html for all non-file routes
+ location / {
+ try_files $uri $uri/ /index.html;
+ }
+ }
diff --git a/charts/securo/templates/frontend/deployment.yaml b/charts/securo/templates/frontend/deployment.yaml
new file mode 100644
index 00000000..f2ea8cc5
--- /dev/null
+++ b/charts/securo/templates/frontend/deployment.yaml
@@ -0,0 +1,60 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ include "securo.fullname" . }}-frontend
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ app.kubernetes.io/component: frontend
+spec:
+ {{- if not .Values.autoscaling.enabled }}
+ replicas: {{ .Values.frontend.replicaCount }}
+ {{- end }}
+ selector:
+ matchLabels:
+ {{- include "securo.selectorLabels" . | nindent 6 }}
+ app.kubernetes.io/component: frontend
+ template:
+ metadata:
+ annotations:
+ checksum/config: {{ include (print $.Template.BasePath "/common/configmap.yaml") . | sha256sum }}
+ labels:
+ {{- include "securo.selectorLabels" . | nindent 8 }}
+ app.kubernetes.io/component: frontend
+ spec:
+ containers:
+ - name: frontend
+ image: "{{ .Values.frontend.image.repository }}:{{ .Values.frontend.image.tag }}"
+ imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
+ ports:
+ - name: http
+ containerPort: 8080
+ protocol: TCP
+ livenessProbe:
+ httpGet:
+ path: /
+ port: 8080
+ initialDelaySeconds: 15
+ periodSeconds: 20
+ readinessProbe:
+ httpGet:
+ path: /
+ port: 8080
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ env:
+ - name: BACKEND_URL
+ value: "http://{{ include "securo.fullname" . }}-backend:8000"
+ - name: FRONTEND_URL
+ value: {{ include "securo.frontendUrl" . | quote }}
+ volumeMounts:
+ - name: nginx-template
+ mountPath: /etc/nginx/templates/default.conf.template
+ subPath: default.conf.template
+ {{- if .Values.frontend.resources }}
+ resources:
+ {{- toYaml .Values.frontend.resources | nindent 12 }}
+ {{- end }}
+ volumes:
+ - name: nginx-template
+ configMap:
+ name: {{ include "securo.fullname" . }}-frontend-nginx
diff --git a/charts/securo/templates/frontend/service.yaml b/charts/securo/templates/frontend/service.yaml
new file mode 100644
index 00000000..545b9eeb
--- /dev/null
+++ b/charts/securo/templates/frontend/service.yaml
@@ -0,0 +1,20 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "securo.fullname" . }}-frontend
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ app.kubernetes.io/component: frontend
+spec:
+ type: {{ .Values.frontend.service.type }}
+ ports:
+ - port: {{ .Values.frontend.service.port }}
+ {{- if .Values.frontend.service.nodePort }}
+ nodePort: {{ .Values.frontend.service.nodePort }}
+ {{- end }}
+ targetPort: http
+ protocol: TCP
+ name: http
+ selector:
+ {{- include "securo.selectorLabels" . | nindent 4 }}
+ app.kubernetes.io/component: frontend
diff --git a/charts/securo/templates/mcp-server/deployment.yaml b/charts/securo/templates/mcp-server/deployment.yaml
new file mode 100644
index 00000000..287eeb4d
--- /dev/null
+++ b/charts/securo/templates/mcp-server/deployment.yaml
@@ -0,0 +1,92 @@
+{{- if .Values.mcpServer.enabled }}
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ include "securo.fullname" . }}-mcp-server
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ app.kubernetes.io/component: mcp-server
+spec:
+ {{- if not .Values.autoscaling.enabled }}
+ replicas: {{ .Values.mcpServer.replicaCount }}
+ {{- end }}
+ selector:
+ matchLabels:
+ {{- include "securo.selectorLabels" . | nindent 6 }}
+ app.kubernetes.io/component: mcp-server
+ template:
+ metadata:
+ labels:
+ {{- include "securo.selectorLabels" . | nindent 8 }}
+ app.kubernetes.io/component: mcp-server
+ spec:
+ containers:
+ - name: mcp-server
+ image: "{{ .Values.backend.image.repository }}:{{ .Values.backend.image.tag }}"
+ imagePullPolicy: {{ .Values.mcpServer.image.pullPolicy }}
+ command:
+ - uvicorn
+ - mcp_server.main:app
+ - --host
+ - 0.0.0.0
+ - --port
+ - "8765"
+ ports:
+ - name: http
+ containerPort: 8765
+ protocol: TCP
+ livenessProbe:
+ httpGet:
+ path: /health
+ port: 8765
+ initialDelaySeconds: 15
+ periodSeconds: 20
+ readinessProbe:
+ httpGet:
+ path: /health
+ port: 8765
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ envFrom:
+ - configMapRef:
+ name: {{ include "securo.fullname" . }}-config
+ - secretRef:
+ {{- if .Values.global.existingSecret }}
+ name: {{ .Values.global.existingSecret }}
+ {{- else }}
+ name: {{ include "securo.fullname" . }}-secrets
+ {{- end }}
+ volumeMounts:
+ {{- if .Values.persistence.attachments.enabled }}
+ - name: attachments
+ mountPath: /app/data/attachments
+ {{- end }}
+ {{- if and (eq (.Values.config.agentsEnabled | toString) "true") .Values.persistence.agentKnowledge.enabled }}
+ - name: agent-knowledge
+ mountPath: /app/data/agent_knowledge
+ {{- end }}
+ {{- if and (eq (.Values.config.agentsEnabled | toString) "true") .Values.persistence.agentEmbeddingModels.enabled }}
+ - name: agent-embedding-models
+ mountPath: /app/data/embedding_models
+ {{- end }}
+ {{- if .Values.mcpServer.resources }}
+ resources:
+ {{- toYaml .Values.mcpServer.resources | nindent 12 }}
+ {{- end }}
+ volumes:
+ {{- if .Values.persistence.attachments.enabled }}
+ - name: attachments
+ persistentVolumeClaim:
+ claimName: {{ include "securo.fullname" . }}-attachments
+ {{- end }}
+ {{- if and (eq (.Values.config.agentsEnabled | toString) "true") .Values.persistence.agentKnowledge.enabled }}
+ - name: agent-knowledge
+ persistentVolumeClaim:
+ claimName: {{ include "securo.fullname" . }}-agent-knowledge
+ {{- end }}
+ {{- if and (eq (.Values.config.agentsEnabled | toString) "true") .Values.persistence.agentEmbeddingModels.enabled }}
+ - name: agent-embedding-models
+ persistentVolumeClaim:
+ claimName: {{ include "securo.fullname" . }}-agent-embedding-models
+ {{- end }}
+{{- end }}
diff --git a/charts/securo/templates/mcp-server/service.yaml b/charts/securo/templates/mcp-server/service.yaml
new file mode 100644
index 00000000..9328ec40
--- /dev/null
+++ b/charts/securo/templates/mcp-server/service.yaml
@@ -0,0 +1,19 @@
+{{- if .Values.mcpServer.enabled }}
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "securo.fullname" . }}-mcp-server
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ app.kubernetes.io/component: mcp-server
+spec:
+ type: {{ .Values.mcpServer.service.type }}
+ ports:
+ - port: {{ .Values.mcpServer.service.port }}
+ targetPort: http
+ protocol: TCP
+ name: http
+ selector:
+ {{- include "securo.selectorLabels" . | nindent 4 }}
+ app.kubernetes.io/component: mcp-server
+{{- end }}
diff --git a/charts/securo/templates/postgresql/service.yaml b/charts/securo/templates/postgresql/service.yaml
new file mode 100644
index 00000000..0a6cac41
--- /dev/null
+++ b/charts/securo/templates/postgresql/service.yaml
@@ -0,0 +1,19 @@
+{{- if .Values.postgresql.enabled }}
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "securo.fullname" . }}-postgresql
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ app.kubernetes.io/component: postgresql
+spec:
+ type: ClusterIP
+ ports:
+ - port: 5432
+ targetPort: tcp-postgresql
+ protocol: TCP
+ name: tcp-postgresql
+ selector:
+ {{- include "securo.selectorLabels" . | nindent 4 }}
+ app.kubernetes.io/component: postgresql
+{{- end }}
diff --git a/charts/securo/templates/postgresql/statefulset.yaml b/charts/securo/templates/postgresql/statefulset.yaml
new file mode 100644
index 00000000..7047b1ce
--- /dev/null
+++ b/charts/securo/templates/postgresql/statefulset.yaml
@@ -0,0 +1,54 @@
+{{- if .Values.postgresql.enabled }}
+apiVersion: apps/v1
+kind: StatefulSet
+metadata:
+ name: {{ include "securo.fullname" . }}-postgresql
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ app.kubernetes.io/component: postgresql
+spec:
+ serviceName: {{ include "securo.fullname" . }}-postgresql
+ replicas: 1
+ selector:
+ matchLabels:
+ {{- include "securo.selectorLabels" . | nindent 6 }}
+ app.kubernetes.io/component: postgresql
+ template:
+ metadata:
+ labels:
+ {{- include "securo.selectorLabels" . | nindent 8 }}
+ app.kubernetes.io/component: postgresql
+ spec:
+ containers:
+ - name: postgresql
+ image: "{{ .Values.postgresql.image.repository }}:{{ .Values.postgresql.image.tag }}"
+ imagePullPolicy: {{ .Values.postgresql.image.pullPolicy }}
+ ports:
+ - name: tcp-postgresql
+ containerPort: 5432
+ protocol: TCP
+ env:
+ - name: POSTGRES_USER
+ value: postgres
+ - name: POSTGRES_PASSWORD
+ value: postgres
+ - name: POSTGRES_DB
+ value: securo
+ - name: PGDATA
+ value: /var/lib/postgresql/data/pgdata
+ volumeMounts:
+ - name: data
+ mountPath: /var/lib/postgresql/data
+ {{- if .Values.postgresql.resources }}
+ resources:
+ {{- toYaml .Values.postgresql.resources | nindent 12 }}
+ {{- end }}
+ volumeClaimTemplates:
+ - metadata:
+ name: data
+ spec:
+ accessModes: [ "ReadWriteOnce" ]
+ resources:
+ requests:
+ storage: 8Gi
+{{- end }}
diff --git a/charts/securo/templates/redis/service.yaml b/charts/securo/templates/redis/service.yaml
new file mode 100644
index 00000000..6aa3d897
--- /dev/null
+++ b/charts/securo/templates/redis/service.yaml
@@ -0,0 +1,19 @@
+{{- if .Values.redis.enabled }}
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "securo.fullname" . }}-redis-master
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ app.kubernetes.io/component: redis
+spec:
+ type: ClusterIP
+ ports:
+ - port: 6379
+ targetPort: tcp-redis
+ protocol: TCP
+ name: tcp-redis
+ selector:
+ {{- include "securo.selectorLabels" . | nindent 4 }}
+ app.kubernetes.io/component: redis
+{{- end }}
diff --git a/charts/securo/templates/redis/statefulset.yaml b/charts/securo/templates/redis/statefulset.yaml
new file mode 100644
index 00000000..674c9f2f
--- /dev/null
+++ b/charts/securo/templates/redis/statefulset.yaml
@@ -0,0 +1,45 @@
+{{- if .Values.redis.enabled }}
+apiVersion: apps/v1
+kind: StatefulSet
+metadata:
+ name: {{ include "securo.fullname" . }}-redis-master
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ app.kubernetes.io/component: redis
+spec:
+ serviceName: {{ include "securo.fullname" . }}-redis-master
+ replicas: 1
+ selector:
+ matchLabels:
+ {{- include "securo.selectorLabels" . | nindent 6 }}
+ app.kubernetes.io/component: redis
+ template:
+ metadata:
+ labels:
+ {{- include "securo.selectorLabels" . | nindent 8 }}
+ app.kubernetes.io/component: redis
+ spec:
+ containers:
+ - name: redis
+ image: "{{ .Values.redis.image.repository }}:{{ .Values.redis.image.tag }}"
+ imagePullPolicy: {{ .Values.redis.image.pullPolicy }}
+ ports:
+ - name: tcp-redis
+ containerPort: 6379
+ protocol: TCP
+ volumeMounts:
+ - name: redis-data
+ mountPath: /data
+ {{- if .Values.redis.resources }}
+ resources:
+ {{- toYaml .Values.redis.resources | nindent 12 }}
+ {{- end }}
+ volumeClaimTemplates:
+ - metadata:
+ name: redis-data
+ spec:
+ accessModes: [ "ReadWriteOnce" ]
+ resources:
+ requests:
+ storage: 2Gi
+{{- end }}
diff --git a/charts/securo/templates/tests/test-connection.yaml b/charts/securo/templates/tests/test-connection.yaml
new file mode 100644
index 00000000..d0b4cf0f
--- /dev/null
+++ b/charts/securo/templates/tests/test-connection.yaml
@@ -0,0 +1,15 @@
+apiVersion: v1
+kind: Pod
+metadata:
+ name: "{{ include "securo.fullname" . }}-test-connection"
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ annotations:
+ "helm.sh/hook": test
+spec:
+ containers:
+ - name: wget
+ image: busybox
+ command: ['wget']
+ args: ['{{ include "securo.fullname" . }}-frontend:{{ .Values.frontend.service.port }}']
+ restartPolicy: Never
diff --git a/charts/securo/templates/worker/deployment.yaml b/charts/securo/templates/worker/deployment.yaml
new file mode 100644
index 00000000..fadf8602
--- /dev/null
+++ b/charts/securo/templates/worker/deployment.yaml
@@ -0,0 +1,78 @@
+{{- if .Values.celeryWorker.enabled }}
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ include "securo.fullname" . }}-worker
+ labels:
+ {{- include "securo.labels" . | nindent 4 }}
+ app.kubernetes.io/component: celery-worker
+spec:
+ {{- if not .Values.autoscaling.enabled }}
+ replicas: {{ .Values.celeryWorker.replicaCount }}
+ {{- end }}
+ selector:
+ matchLabels:
+ {{- include "securo.selectorLabels" . | nindent 6 }}
+ app.kubernetes.io/component: celery-worker
+ template:
+ metadata:
+ annotations:
+ checksum/config: {{ include (print $.Template.BasePath "/common/configmap.yaml") . | sha256sum }}
+ labels:
+ {{- include "securo.selectorLabels" . | nindent 8 }}
+ app.kubernetes.io/component: celery-worker
+ spec:
+ containers:
+ - name: celery-worker
+ image: "{{ .Values.backend.image.repository }}:{{ .Values.backend.image.tag }}"
+ imagePullPolicy: {{ .Values.celeryWorker.image.pullPolicy }}
+ command:
+ - celery
+ - -A
+ - app.worker
+ - worker
+ - --loglevel=info
+ - --concurrency=2
+ envFrom:
+ - configMapRef:
+ name: {{ include "securo.fullname" . }}-config
+ - secretRef:
+ {{- if .Values.global.existingSecret }}
+ name: {{ .Values.global.existingSecret }}
+ {{- else }}
+ name: {{ include "securo.fullname" . }}-secrets
+ {{- end }}
+ volumeMounts:
+ {{- if .Values.persistence.attachments.enabled }}
+ - name: attachments
+ mountPath: /app/data/attachments
+ {{- end }}
+ {{- if and (eq (.Values.config.agentsEnabled | toString) "true") .Values.persistence.agentKnowledge.enabled }}
+ - name: agent-knowledge
+ mountPath: /app/data/agent_knowledge
+ {{- end }}
+ {{- if and (eq (.Values.config.agentsEnabled | toString) "true") .Values.persistence.agentEmbeddingModels.enabled }}
+ - name: agent-embedding-models
+ mountPath: /app/data/embedding_models
+ {{- end }}
+ {{- if .Values.celeryWorker.resources }}
+ resources:
+ {{- toYaml .Values.celeryWorker.resources | nindent 12 }}
+ {{- end }}
+ volumes:
+ {{- if .Values.persistence.attachments.enabled }}
+ - name: attachments
+ persistentVolumeClaim:
+ claimName: {{ include "securo.fullname" . }}-attachments
+ {{- end }}
+ {{- if and (eq (.Values.config.agentsEnabled | toString) "true") .Values.persistence.agentKnowledge.enabled }}
+ - name: agent-knowledge
+ persistentVolumeClaim:
+ claimName: {{ include "securo.fullname" . }}-agent-knowledge
+ {{- end }}
+ {{- if and (eq (.Values.config.agentsEnabled | toString) "true") .Values.persistence.agentEmbeddingModels.enabled }}
+ - name: agent-embedding-models
+ persistentVolumeClaim:
+ claimName: {{ include "securo.fullname" . }}-agent-embedding-models
+ {{- end }}
+{{- end }}
diff --git a/charts/securo/values.yaml b/charts/securo/values.yaml
new file mode 100644
index 00000000..c2fe0425
--- /dev/null
+++ b/charts/securo/values.yaml
@@ -0,0 +1,244 @@
+# Default values for securo.
+# This is a YAML-formatted file.
+# Declare variables to be passed into your templates.
+
+global:
+ # The public domain of the application (e.g., securo.local, app.securo.com)
+ domain: "securo.local"
+ # Set to true if the application is accessed over HTTPS (changes generated URLs)
+ tls: false
+
+ # For production, we recommend passing existingSecret instead of creating one via Helm values
+ # existingSecret: "securo-secrets"
+
+# If existingSecret is NOT set, this secret will be created with the values below
+secret:
+ # MUST change in production
+ secretKey: "dev-secret-change-in-production"
+ # If postgresql.enabled is true, the internal database will be deployed.
+ # If postgresql.enabled is false, you must provide your external database URL here or in existingSecret.
+ databaseUrl: 'postgresql+asyncpg://postgres:postgres@{{ include "securo.fullname" . }}-postgresql:5432/securo'
+
+ # Pluggy
+ pluggyClientId: ""
+ pluggyClientSecret: ""
+
+ # Enable Banking
+ enableBankingAppId: ""
+ enableBankingPrivateKey: "" # Content of the PEM file
+
+ # OIDC
+ oidcClientId: ""
+ oidcClientSecret: ""
+
+ # OpenExchangeRates
+ openexchangeratesAppId: ""
+
+ # Agents (LLM)
+ agentsMcpJwtSecret: "dev-mcp-secret-change-in-production"
+ agentsOpenaiApiKey: ""
+ agentsAnthropicApiKey: ""
+ agentsOpenaiCompatApiKey: ""
+
+# Non-sensitive configuration
+config:
+ debug: "false"
+ # Leave empty to auto-compute from global.domain (e.g. http://securo.local/oauth/callback)
+ pluggyOauthRedirectUri: ""
+ enableBankingApiUrl: "https://api.enablebanking.com"
+ # Leave empty to auto-compute from global.domain
+ enableBankingOauthRedirectUri: ""
+ simplefinEnabled: "false"
+ simplefinApiUrl: "https://beta-bridge.simplefin.org"
+ oidcEnabled: "false"
+ oidcProviderName: "OIDC"
+ oidcDiscoveryUrl: ""
+ oidcRedirectUri: ""
+ oidcScopes: "openid email profile"
+ oidcAutoRegister: "true"
+ oidcExistingUserLinkMode: "disabled"
+ oidcRequireVerifiedEmail: "true"
+ oidcSyncRoles: "false"
+ oidcRolesClaim: "groups"
+ oidcAdminRoles: ""
+ oidcWorkspaceRoleMap: ""
+ fxSyncMode: "on_demand"
+ tesouroDiretoEnabled: "true"
+
+ # Redis configuration
+ # If redis.enabled is true, the internal redis will be deployed.
+ # If redis.enabled is false, you must provide your external Redis URL here.
+ redisUrl: 'redis://{{ include "securo.fullname" . }}-redis-master:6379/0'
+ celeryBrokerUrl: 'redis://{{ include "securo.fullname" . }}-redis-master:6379/0'
+ celeryResultBackend: 'redis://{{ include "securo.fullname" . }}-redis-master:6379/0'
+
+ storageLocalPath: "/app/data/attachments"
+ agentsKnowledgeStoragePath: "/app/data/agent_knowledge"
+
+ # Agents feature
+ agentsEnabled: "false"
+ agentsBuiltinMcpUrl: 'http://{{ include "securo.fullname" . }}-mcp-server:8765/mcp'
+ agentsExternalMcpUrl: '{{ include "securo.frontendUrl" . }}/mcp'
+ agentsExtraMcpServers: ""
+ agentsMcpExternalTtlDays: "90"
+ agentsDefaultProvider: "ollama"
+ agentsDefaultModel: ""
+ agentsOllamaBaseUrl: "http://ollama:11434"
+ agentsOpenaiCompatBaseUrl: ""
+ agentsEmbeddingProvider: "native"
+ agentsEmbeddingModel: "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2"
+
+# Backend configuration
+backend:
+ replicaCount: 1
+ image:
+ repository: ghcr.io/securo-finance/securo-backend
+ tag: latest
+ pullPolicy: IfNotPresent
+ service:
+ type: ClusterIP
+ port: 8000
+ resources:
+ limits:
+ cpu: 500m
+ memory: 512Mi
+ requests:
+ cpu: 100m
+ memory: 256Mi
+
+# Frontend configuration
+frontend:
+ replicaCount: 1
+ image:
+ repository: ghcr.io/securo-finance/securo-frontend
+ tag: latest
+ pullPolicy: IfNotPresent
+ service:
+ type: ClusterIP
+ port: 3000
+ resources:
+ limits:
+ cpu: 200m
+ memory: 256Mi
+ requests:
+ cpu: 50m
+ memory: 64Mi
+
+# Celery Worker configuration
+celeryWorker:
+ enabled: true
+ replicaCount: 1
+ image:
+ pullPolicy: IfNotPresent
+ resources:
+ limits:
+ cpu: 500m
+ memory: 512Mi
+ requests:
+ cpu: 100m
+ memory: 256Mi
+
+# Celery Beat configuration
+celeryBeat:
+ enabled: true
+ image:
+ pullPolicy: IfNotPresent
+ resources:
+ limits:
+ cpu: 200m
+ memory: 256Mi
+ requests:
+ cpu: 50m
+ memory: 64Mi
+
+# Built-in MCP Server configuration
+mcpServer:
+ enabled: false
+ replicaCount: 1
+ image:
+ pullPolicy: IfNotPresent
+ service:
+ type: ClusterIP
+ port: 8765
+ resources:
+ limits:
+ cpu: 300m
+ memory: 256Mi
+ requests:
+ cpu: 50m
+ memory: 128Mi
+
+# Persistence for application data
+# IMPORTANT: Since Backend, Celery Worker, and MCP Server all share the same attachment files,
+# they mount these PVCs concurrently. If your pods are scheduled across multiple nodes,
+# you MUST use a StorageClass that supports `ReadWriteMany` (RWX) access mode (e.g., NFS, CephFS).
+# `ReadWriteOnce` will only work if you restrict all pods to a single node.
+persistence:
+ attachments:
+ enabled: true
+ size: 5Gi
+ storageClass: ""
+ accessMode: ReadWriteOnce
+ agentKnowledge:
+ enabled: true
+ size: 5Gi
+ storageClass: ""
+ accessMode: ReadWriteOnce
+ agentEmbeddingModels:
+ enabled: true
+ size: 5Gi
+ storageClass: ""
+ accessMode: ReadWriteOnce
+
+# Standard Kubernetes Ingress
+ingress:
+ enabled: false
+ className: ""
+ annotations: {}
+ # kubernetes.io/ingress.class: nginx
+ # kubernetes.io/tls-acme: "true"
+ tls: []
+ # - secretName: securo-tls
+ # hosts:
+ # - securo.local
+
+httpRoute:
+ enabled: false
+ parentRefs: []
+ # - name: external-gateway
+ # namespace: gateway-system
+ # Path matches will route /api to backend and / to frontend.
+
+# Simple StatefulSet for PostgreSQL
+postgresql:
+ enabled: true
+ image:
+ repository: docker.io/pgvector/pgvector
+ tag: pg16
+ pullPolicy: IfNotPresent
+ resources: {}
+
+# Simple StatefulSet for Redis
+redis:
+ enabled: true
+ image:
+ repository: docker.io/library/redis
+ tag: 7-alpine
+ pullPolicy: IfNotPresent
+ resources: {}
+
+serviceAccount:
+ # Specifies whether a service account should be created
+ create: true
+ # Annotations to add to the service account
+ annotations: {}
+ # The name of the service account to use.
+ # If not set and create is true, a name is generated using the fullname template
+ name: ""
+
+autoscaling:
+ enabled: false
+ minReplicas: 1
+ maxReplicas: 10
+ targetCPUUtilizationPercentage: 80
+ # targetMemoryUtilizationPercentage: 80