Cluster Runbook Generator — select a cluster, fill in credentials, click Generate. All commands populate and are ready to copy.
polaris-cdn-<cluster>-r2)Polaris admin username for this cluster (used in API curl calls).
RequiredPolaris admin password for this cluster.
RequiredCloudflare dashboard → R2 → Overview (right sidebar). Also: wrangler whoami
CF dashboard → My Profile → API Tokens. Required scopes: R2 Storage Edit, Workers Scripts Edit, Workers Routes Edit.
RequiredCF dashboard → R2 → Manage R2 API Tokens → Create API Token. One token per cluster.
RequiredSecret key paired with the R2 Access Key above. Shown only once at creation.
RequiredRun: SELECT site__settings::jsonb -> 'amazonS3Settings' FROM site; — use s3AccessKey.
Same SQL query — use the s3SecretKey field.
Verify with: kubectl get pods -A | grep polaris
Must be identical in the Cloudflare Worker (step 1.5) and Polaris CDN config (step 2.2). Record it safely.
RequiredThe URL signing secret for this deployment (set as a wrangler secret in step 1.5 and in Polaris config in step 2.2):
Update dev/cloudflare/r2-worker/wrangler.toml — edit the [env.prod] block with the values below,
then deploy via wrangler.
wrangler.toml — [env.prod] section (two lines to change):
Set wrangler secret and deploy:
enabled: true and correct bucket name
enabled: true
wrangler tail --env prod
Click each item to check it off. Checklist state is not persisted.