Yarilo documentation site (doc.yarilomail.org)
The Deploy docs workflow builds every version into the gh-pages branch. The cluster serves that branch: helm/ is the chart, argocd-app.yaml its ArgoCD application (namespace yarilomail, values helm_values/values-prod.yaml).
- A sidecar (
alpine:3.24with git) pullsgh-pageseverysite.pullIntervalSeconds(60) into/site/<commit>and points/site/currentat it; nginx serves/site/current. A merge shows within a minute, with no image and no rollout. - nginx:
dirgoes todir/and an extensionless page to its.htmlform, both by relative 301; a missing page is the root404.htmlwith status 404;assets/of every version are cached for a year; the pod is ready once a checkout is in place (/healthz). - The site is behind Cloudflare. The Ingress takes traffic from Cloudflare's ranges only, with a Let's Encrypt certificate (
letsencrypt-prod). The Ingress carries the labelcloudflare-whitelist: "true", so the cluster's one cf-whitelist CronJob rewrites that list from api.cloudflare.com every 6 hours;cloudflareWhitelist.ipRangesis only the starting list, and ArgoCD ignores the annotation, so it does not put it back. - Logs carry the client's address: nginx takes
CF-Connecting-IPfromrealIp.trustedProxiesonly (the pod network, where the ingress controller runs), so a request from anywhere else logs its own peer address. The ingress controller's log already usesCF-Connecting-IP.