How qorgh529/homelab-k8s works
This repository is a Kubernetes-hosted internal web portal with a FastAPI backend, PostgreSQL storage, and operational monitoring and alerting. The main user workflow is accessing the portal through HTTPS, authenticating, and using portal and administrator features backed by the API and database. The README also documents a separate hub homepage and GitOps-managed services, though this tree has no hub implementation files. Relationships for unsampled frontend and deployment wiring are included only where the README documents them.
Main entry points: main.py Portal API · notifier.py Alert dispatch · index.html Portal frontend · monitor.py Health checks
Components 19
Portal experience
- Portal frontend
frontend/index.html - Service hub
Portal API
- Portal API
backend/main.py - Authentication
backend/main.py - Admin features
backend/main.py - Boards and notices
backend/main.py - Portal database
k8s/02-postgres.yaml
Monitoring and alerts
- Health checks
backend/monitor.py - Alert dispatch
backend/notifier.py
Cluster platform
- Kubernetes workloads
k8s/04-backend.yaml - HTTPS routing
k8s/08-ingress.yaml - Certificate management
k8s/07-clusterissuer.yaml - Gitea
09-ingress-gitea.yaml - Argo CD
06-argocd-app.yaml
Other components
- Portal user
- Kubernetes API
- Discord
- Gmail
- Developer
Connections 19
- Portal user → HTTPS routing: opens HTTPS
README.md - HTTPS routing → Portal frontend: routes requests
README.md - Portal frontend → Portal API: calls API
README.md - Portal frontend → Service hub: opens homepage
README.md - Portal API → Authentication: handles login
backend/main.py - Portal API → Admin features: handles admin
backend/main.py - Portal API → Boards and notices: handles posts
backend/main.py - Portal API → Portal database: reads and writes
backend/main.py - Kubernetes workloads → Portal API: runs API
README.md - Kubernetes workloads → Portal frontend: runs frontend
README.md - Health checks → Kubernetes API: checks cluster
backend/monitor.py - Health checks → Certificate management: checks certificates
backend/monitor.py - Health checks → Alert dispatch: sends alerts
backend/monitor.py - Alert dispatch → Portal database: loads channels
backend/notifier.py - Alert dispatch → Discord: sends webhook
backend/notifier.py - Alert dispatch → Gmail: sends email
backend/notifier.py - Developer → Gitea: pushes changes
README.md - Gitea → Argo CD: triggers deploy
README.md - Argo CD → Kubernetes workloads: deploys workloads
README.md