blumeops/argocd/manifests/docs/deployment.yaml
Erich Blume 74dcddd9fb Add HA for CV and Docs: 2 replicas, rolling updates, PDBs
- Set replicas: 2 with maxUnavailable: 0 / maxSurge: 1 on both
  deployments so rolling updates never drop below 2 ready pods
- Add PodDisruptionBudgets (minAvailable: 1) to protect against
  node drains and cluster maintenance
- Add Fly.io cache purge step to cv-deploy workflow (docs already
  had this) so CV deploys don't serve stale cached content

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 07:43:52 -08:00

48 lines
1.1 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: docs
namespace: docs
spec:
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
selector:
matchLabels:
app: docs
template:
metadata:
labels:
app: docs
spec:
containers:
- name: docs
image: registry.ops.eblu.me/blumeops/quartz
ports:
- containerPort: 80
name: http
env:
- name: DOCS_RELEASE_URL
value: "https://forge.ops.eblu.me/eblume/blumeops/releases/download/v1.11.4/docs-v1.11.4.tar.gz"
resources:
requests:
memory: "64Mi"
cpu: "10m"
limits:
memory: "128Mi"
livenessProbe:
httpGet:
path: /healthz
port: 80
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /healthz
port: 80
initialDelaySeconds: 5
periodSeconds: 10