Production Deployment¶
Checklist¶
- [ ] TLS enabled
- [ ] Encryption enabled
- [ ] Strong credentials
- [ ] PostgreSQL backend
- [ ] Resource limits set
- [ ] Monitoring enabled
- [ ] Backup configured
- [ ] Network policies
Security¶
TLS¶
Encryption¶
Credentials¶
# Generate strong credentials
HAFIZ_ROOT_ACCESS_KEY=$(openssl rand -hex 16)
HAFIZ_ROOT_SECRET_KEY=$(openssl rand -hex 32)
High Availability¶
Multiple Replicas¶
replicaCount: 5
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: hafiz
topologyKey: kubernetes.io/hostname
Pod Disruption Budget¶
Monitoring¶
Enable Prometheus metrics: