How mongulu-cm/manzi-mfa works
Purpose and entry points
Manzi MFA is a Kubernetes-operated “bridge for work” platform centered on an EasyAppointments deployment, MySQL persistence, SMTP, and automated job-listing ingestion. Primary deployment entry points are the Helm chart at helm/Chart.yaml and GitOps application set at argo_appset/appset.yaml. The scraper runs from data_ingestion/jobs/main.py.
Application platform
The Helm chart deploys the core scheduling stack:
• EasyAppointments application: helm/templates/deployment-easyappointment.yaml, helm/templates/service-easyappointments.yaml, helm/templates/ingress-easyappointments.yaml
• MySQL database and its credential secret: helm/templates/deployment-mysql.yaml, helm/templates/secret-mysql.yaml
• SMTP service for application email: helm/templates/deployment-smtpd.yaml, helm/templates/service-smtpd.yaml
Ingress is the external boundary for EasyAppointments; MySQL and SMTP are cluster services consumed by the application.
Job ingestion pipeline
A Python scraper collects job postings and persists normalized records. data_ingestion/jobs/main.py is the orchestrator; target sources are likely supplied through data_ingestion/jobs/list.txt. Data is represented by data_ingestion/jobs/models/job.py and column mapping/schema material is in data_ingestion/jobs/models/jobs_colums.csv.
Scraping execution layer
Scraper selection is centralized in data_ingestion/jobs/scrapers/scraper_factory.py. A common scraper contract in data_ingestion/jobs/scrapers/base_scraper.py supports distinct navigation strategies:
• Paginated sources: data_ingestion/jobs/scrapers/pagination_scraper.py
• Infinite-scroll sources: data_ingestion/jobs/scrapers/scroll_scraper.py
Browser automation is an important external-runtime boundary, with Selenium setup in data_ingestion/jobs/utils/selenium.py; scraper dependencies are declared in data_ingestion/jobs/requirements.txt.
Persistence and presentation boundary
The ingestion pipeline accesses its database through data_ingestion/jobs/utils/db.py, separating scraper logic from connection/write behavior. A simple page artifact at data_ingestion/jobs/page/index.html appears intended to expose or render job data, though no serving runtime is represented in the tree.
Backup and operational automation
Database backup is containerized at database/backup/docker/Dockerfile and scheduled/deployed by helm/templates/database-backup.yml. CI workflows drive testing, scraper jobs, and backup-image publication: .github/workflows/tests.yml, .github/workflows/scrape_jobs.yml, and .github/workflows/deploy_data_backup_image.yml.
Cluster and delivery infrastructure
The repository expects Kubernetes plus Helm, Argo CD, cert-manager/ACME, External Secrets backed by AWS Parameter Store, Diun image monitoring, and GitHub Actions Runner Controller. Cluster-level prerequisites are represented in manifests/issuer-acme.yml, manifests/parameter-store.yml, and manifests/diun.yml; Argo CD reconciles application deployment from argo_appset/appset.yaml.
Main entry points: main.py Scraper orchestrator · deployment-mysql.yaml MySQL · deployment-easyappointment.yaml EasyAppointments · scrape_jobs.yml GitHub Actions
Components 21
Delivery & Cluster
- Argo CD ApplicationSet · Reconciles the platform into Kubernetes.
argo_appset/appset.yaml - Helm chart · Defines the deployed scheduling stack and backup workload.
helm/Chart.yaml - Kubernetes cluster
- AWS Parameter Store secrets · Supplies cluster secrets through External Secrets.
manifests/parameter-store.yml - cert-manager / ACME
manifests/issuer-acme.yml
Scheduling Platform
- EasyAppointments · Core appointment application.
helm/templates/deployment-easyappointment.yaml - EasyAppointments ingress
helm/templates/ingress-easyappointments.yaml - MySQL
helm/templates/deployment-mysql.yaml - MySQL credentials
helm/templates/secret-mysql.yaml - SMTP service
helm/templates/deployment-smtpd.yaml
Job Ingestion
- Scraper orchestrator · Collects and persists job postings.
data_ingestion/jobs/main.py - Job source list
data_ingestion/jobs/list.txt - Scraper factory · Selects a scraper for each source.
data_ingestion/jobs/scrapers/scraper_factory.py - Pagination & scroll scrapers · Implements paginated and infinite-scroll collection.
data_ingestion/jobs/scrapers/pagination_scraper.py - Selenium browser runtime
data_ingestion/jobs/utils/selenium.py - Ingestion database access · Separates database writes from scraper logic.
data_ingestion/jobs/utils/db.py - Job schema
data_ingestion/jobs/models/job.py
Operations
- Database backup job · Scheduled database backup workload.
helm/templates/database-backup.yml - Backup image
database/backup/docker/Dockerfile - GitHub Actions · Runs tests, scraper jobs, and backup-image publication.
.github/workflows/scrape_jobs.yml - Diun image monitor
manifests/diun.yml
Connections 20
- Argo CD ApplicationSet → Helm chart: deploys
- Helm chart → Kubernetes cluster: installs into
- AWS Parameter Store secrets → MySQL credentials: provides
- MySQL credentials → MySQL: configures
- EasyAppointments ingress → EasyAppointments: routes requests
- cert-manager / ACME → EasyAppointments ingress: issues TLS for
- EasyAppointments → MySQL: stores scheduling data
- EasyAppointments → SMTP service: sends email through
- Scraper orchestrator → Job source list: reads sources
- Scraper orchestrator → Scraper factory: selects scraper
- Scraper factory → Pagination & scroll scrapers: creates
- Pagination & scroll scrapers → Selenium browser runtime: automates browser
- Scraper orchestrator → Job schema: normalizes records
- Scraper orchestrator → Ingestion database access: persists through
- Ingestion database access → MySQL: writes job data
- Backup image → Database backup job: builds runtime for
- Database backup job → MySQL: backs up
- GitHub Actions → Scraper orchestrator: runs
- GitHub Actions → Backup image: publishes
- Diun image monitor → Kubernetes cluster: monitors images