Keep the filesystem object store on a node-local Retain-class PVC per environment (ADR-0070), with the database on the external PostgreSQL VM. Because local-path does not enforce sizes, the object store now refuses new objects below a free-space reserve with a distinct full error, so a full volume publishes and acknowledges nothing. evo-world-clone gains check-store to qualify volume retention, reserve, database version/TLS and the runtime privilege boundary from inside the cluster; it now ships in the server image. Add the storage class, object claims, hand-applied store Jobs, policy rules forbidding password env vars, and the runbook. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
826 B
YAML
18 lines
826 B
YAML
# M8.3 (ADR-0070). Cluster-scoped; a cluster administrator applies it by hand:
|
|
# kubectl apply -f deploy/kubernetes/platform/storage/storageclass.yaml
|
|
# Same provisioner as the cluster's only class (rancher.io/local-path: a directory on
|
|
# the node that first runs the consumer), but deleting a claim keeps the volume and
|
|
# its data (Released) instead of deleting it. Volumes are node-local: no replication,
|
|
# no failover, and the requested size is not enforced (the object store's free-space
|
|
# reserve and M8.5 alerts cover that). Never the default class.
|
|
apiVersion: storage.k8s.io/v1
|
|
kind: StorageClass
|
|
metadata:
|
|
name: aevolution-local-retain
|
|
labels:
|
|
app.kubernetes.io/part-of: aevolution
|
|
provisioner: rancher.io/local-path
|
|
reclaimPolicy: Retain
|
|
volumeBindingMode: WaitForFirstConsumer
|
|
allowVolumeExpansion: false
|