Repo Tanıtımı
Odoo ERP ve PostgreSQL veritabanını Kubernetes üzerinde tam otomatik yöneten altyapı projesi. Manuel müdahaleyi minimuma indirir; pod'lar kendini iyileştirir, gizli anahtarlar periyodik olarak döndürülür ve uçtan uca Zabbix ile izlenir.
Özellikler
- PostgreSQL HA cluster (Patroni + etcd üzerinden primary/replica failover, ~10sn)
- Odoo workers (web + cron pod'ları ayrı; cron pod replicas=1)
- Self-healing controller — pod log'larını analiz edip 3 senaryoda otomatik aksiyon (DB timeout, asset cache bozulması, PVC dolu)
- Aylık secret rotation — DB şifresi, master.key, admin_passwd; rolling restart ile uygulanır
- Zabbix Agent2 sidecar + custom UserParameter (Odoo worker durumu, DB connection count, slow query)
- NGINX Ingress + Cloudflare Tunnel
- Bootstrap script tek komutla kurulum
Mimari
- Database: PostgreSQL 18 StatefulSet, PVC, Patroni leader election
- Application: Odoo 19 Deployment, gunicorn workers, ayrı cron pod
- Monitoring: Zabbix Server + Agent2 sidecar
- Automation: Bash bootstrap + Python self-healing controller (CronJob)
- Networking: NGINX Ingress, Cloudflare Tunnel, internal ClusterIP
Kullanılan Teknolojiler
Kubernetes, PostgreSQL 18, Patroni, etcd, Odoo 19, Bash, Python, Zabbix, NGINX, Cloudflare, GitHub Actions, kubectl, helm.