GitOps repository for EasyTP Kubernetes infrastructure managed by Flux CD.
├── clusters/production/ # Cluster-level Kustomizations
├── infrastructure/ # Namespaces, cert-manager config
├── apps/ # Application deployments
│ ├── django-app/ # Django backend + PostgreSQL + Redis + Nginx
│ └── registry/ # Self-hosted Docker registry
└── image-automation/ # Flux image update automation
- Frontend: EasyTP-Frontend
- Backend: EasyTP-Backend
These secrets must be created manually (not stored in git):
# Registry credentials for Flux image scanning
kubectl create secret docker-registry registry-credentials \
--namespace=flux-system \
--docker-server=registry.melekabderrahmane.com \
--docker-username=<username> \
--docker-password=<password>
# Registry pull secret for django-app
kubectl create secret docker-registry registry-pull-secret \
--namespace=django-app \
--docker-server=registry.melekabderrahmane.com \
--docker-username=<username> \
--docker-password=<password>
# Django secrets (DB_PASSWORD, SECRET_KEY, WEBHOOK_SECRET)
kubectl create secret generic django-secrets \
--namespace=django-app \
--from-literal=DB_PASSWORD=<password> \
--from-literal=SECRET_KEY=<secret-key> \
--from-literal=WEBHOOK_SECRET=<webhook-secret>export GITHUB_TOKEN=<your-pat>
flux bootstrap github \
--owner=<your-github-username> \
--repository=EasyTP-Infra \
--branch=main \
--path=./clusters/production \
--personal \
--components-extra=image-reflector-controller,image-automation-controller