S3-compatible storage for PostgreSQL WAL backups (CloudNativePG).
- Cloudflare account (Step 2.2)
- R2 Dashboard → Create bucket
- Name:
cnpg-backups
- R2 API Tokens → Create API token
- Configure:
- Token name:
k8s-s3-api-token - Permissions: Object Read & Write
- Specify bucket(s):
cnpg-backups
- Token name:
- Click Create API Token
- Add to Doppler:
S3_ACCESS_KEY_IDandS3_SECRET_ACCESS_KEY - In R2 dashboard, find Account ID in the right sidebar → save as
<CF_ACCOUNT_ID>
R2 endpoint:
https://<CF_ACCOUNT_ID>.r2.cloudflarestorage.com
Placeholders for values.yaml:
<CF_ACCOUNT_ID>— from R2 dashboard (right sidebar)
Add to Doppler shared:
S3_ACCESS_KEY_IDS3_SECRET_ACCESS_KEY
| Resource | Free Tier | Paid |
|---|---|---|
| Storage | 10 GB/month | $0.015/GB |
| Class A ops | 1M/month | $4.50/M |
| Class B ops | 10M/month | $0.36/M |
| Egress | Unlimited | $0 |