İçereği Atla

odoo-postgres-k8s-automation

Kubernetes üzerinde otonom Odoo ve PostgreSQL altyapısı — self-healing, secret rotation ve Zabbix izleme.
30 Nisan 2026 yazan

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.

GitHub Repo

CENG-314 Computer Networks
tshark, awk ve sed ile ağ trafiğini protokol bazında ayrıştırıp Markdown/PDF rapor üreten Bash aracı.