From 6c8d2202b581f08ab44e4bd6ec550d3a8f99518e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Trkan?= Date: Thu, 6 Nov 2025 12:03:15 +0100 Subject: [PATCH] update report --- 7project/report.md | 48 ++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 40 insertions(+), 8 deletions(-) diff --git a/7project/report.md b/7project/report.md index 6669ed8..7d9d2a3 100644 --- a/7project/report.md +++ b/7project/report.md @@ -123,12 +123,13 @@ docker compose up --build # Set environment variables (or create .env file) # TODO: fix export SECRET=CHANGE_ME_SECRET -export BACKEND_URL=http://127.0.0.1:8000 -export FRONTEND_URL=http://localhost:5173 -export DATABASE_URL=postgresql+asyncpg://user:password@127.0.0.1:5432/app -export RABBITMQ_URL=amqp://guest:guest@127.0.0.1:5672/ -export REDIS_URL=redis://127.0.0.1:6379/0 - +export FRONTEND_DOMAIN_SCHEME=http://localhost:5173 +export BANKID_CLIENT_ID=CHANGE_ME +export BANKID_CLIENT_SECRET=CHANGE_ME +export CSAS_CLIENT_ID=CHANGE_ME +export CSAS_CLIENT_SECRET=CHANGE_ME +export MOJEID_CLIENT_ID=CHANGE_ME +export MOJEID_CLIENT_SECRET=CHANGE_ME # Apply DB migrations (Alembic) # From 7project bash upgrade_database.sh @@ -164,7 +165,38 @@ npm run build ``` ## Deployment Instructions +### Setup Cluster +Deployment should work on any Kubernetes cluster. However, we are using 4 TalosOS virtual machines (1 control plane, 3 workers) +running on top of Proxmox VE. +1) Create 4 VMs with TalosOS +2) Install talosctl for your OS: https://docs.siderolabs.com/talos/v1.10/getting-started/talosctl +3) Generate Talos config +```bash +# TODO: add commands +``` +4) Edit the generated worker.yaml +- add google container registry mirror +- add modules from config generator +- add extramounts for persistent storage +- add kernel modules + +5) Apply the config to the VMs +```bash +#TODO: add config apply commands +``` + +6) Verify the cluster is up +```bash +``` + +7) Export kubeconfig +```bash +# TODO: add export command +``` + + +### Install 1) Install base services to cluster ```bash cd tofu @@ -172,8 +204,8 @@ cd tofu cp terraform.tfvars.example terraform.tfvars # authenticate to your cluster/cloud as needed, then: tofu init -tofu plan -tofu apply +tofu apply -exclude modules.cloudflare +tofu apply ``` 2) Deploy the app using Helm