Files
unkin-agent c090015686 Deploy coroot behind oauth2-proxy (#605)
Coroot gives eBPF-based service maps, tracing and RCA for the cluster; the community edition has no OIDC, so it sits behind oauth2-proxy.

- add coroot-operator chart 0.10.8 in coroot-system (platform)
- add a Coroot CR: 2 replicas on CNPG, ClickHouse 2 + keeper 3, metrics via vmcluster/main, pinned images
- agents send keyless; Coroot binds an empty key to its single default project
- front coroot.unkin.net with oauth2-proxy (Authentik, akP-coroot-admin); Coroot grants Admin to anonymous
- restrict Coroot ingress to oauth2-proxy and the agents; PDBs, anti-affinity, DNS, wildcard cert, schema

Requires IUCLabs/terraform-artifactapi#7 and IUCLabs/terraform-authentik#7.

Reviewed-on: #605
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-11-27 07:55:38 +11:00

48 lines
1.4 KiB
YAML

---
# Per-cluster Ceph RGW bucket + owner user for CNPG backups, via cephrgw-operator.
apiVersion: ceph.unkin.net/v1alpha1
kind: ObjectStoreUser
metadata:
name: cnpg-coroot-backup
namespace: coroot
spec:
displayName: "CNPG backup owner (coroot)"
# RGW users are global; keep the uid namespace-qualified so it never collides.
uid: cnpg-coroot-backup
maxBuckets: 5
# Operator writes the S3 keys here; the Cluster's barmanObjectStore consumes them.
secretName: cnpg-coroot-backup-s3
# Keep the RGW user (and keys) on CR deletion so a restore can still reach the archive.
retainOnDelete: true
---
apiVersion: ceph.unkin.net/v1alpha1
kind: Bucket
metadata:
name: cnpg-coroot
namespace: coroot
spec:
placementTarget: ec
bucketName: cnpg-coroot
# The owner user has full read/write on its bucket; no extra BucketAccess grant.
ownerRef: cnpg-coroot-backup
versioning: false
tags:
app: coroot
purpose: cnpg-backup
# Never drop the backups if the CR is removed; retire buckets by hand.
retainOnDelete: true
---
# Nightly base backup under always-on WAL archiving (CNPG cron is 6-field, seconds first).
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: cnpg-coroot-nightly
namespace: coroot
spec:
schedule: "0 10 4 * * *"
immediate: false
backupOwnerReference: self
method: barmanObjectStore
cluster:
name: postgres