Renames the namespace introduced in #72 (`forgejo-runners` -> `ci-runners`) per the orchestrator decision on card t_2bbe34a8, and sets the capsule's warn/audit levels to `privileged` alongside `enforce: privileged`: everything in it is allowed by design, so restricted-level warnings on every pod restart would be noise, and the intent is explicit in Git rather than implied. Storage is the same three PVs, rebound again by name (Retain + cleared claimRef), so the runner registration uuids, dind image sets and action caches survive: verified before/after (uuids 91124ee3/4e07c1e9/a41aad73, image counts 19/2/31, canary files intact). Monitoring selectors and docs follow the new namespace; the Grafana dashboard keeps its `forgejo-runners` uid.
122 lines
3.5 KiB
YAML
122 lines
3.5 KiB
YAML
---
|
|
# Static storage for the arm64 runners' in-cluster dind daemons.
|
|
#
|
|
# Why static PVs and not the default `local-path` StorageClass: the
|
|
# provisioner's helper pod is hardcoded to siriussec
|
|
# (infrastructure/storage/local-path-storage.yaml, helper-pod nodeSelector) and
|
|
# for a local filesystem it never sets spec.nodeName, so a `local-path` PVC
|
|
# consumed by a pod on rpi stays Pending forever ("NodeAffinity failed").
|
|
# Measured 2026-10-27 in a throwaway namespace; see
|
|
# docs/arm64-runner-dind.md §6.1.
|
|
#
|
|
# `persistentVolumeReclaimPolicy: Retain` is deliberate: the runner's
|
|
# registration (`runner.ini`, uuid of the Forgejo action_runner row) lives in
|
|
# this directory. Deleting the PVC must never delete the identity — a re-
|
|
# registered runner burns a single-use token and leaves an orphaned
|
|
# action_runner row behind.
|
|
#
|
|
# Sizes come from measured steady state (docs/arm64-runner-dind.md §4):
|
|
# shared runner 146.5 GiB steady -> 200Gi request (named CI volumes)
|
|
# deploy runner ~0.3 GiB steady -> 40Gi request (image + buildx generations)
|
|
# 240 GiB of the Pi's 390 GiB free. A static PV does not enforce the request —
|
|
# the 70 % node-filesystem alert in monitoring/controllers/home/prune-alerts.yaml
|
|
# is the real cap.
|
|
apiVersion: storage.k8s.io/v1
|
|
kind: StorageClass
|
|
metadata:
|
|
name: local-static
|
|
# No provisioner: every PV with this class is hand-made, so a typo'd claim
|
|
# hangs in Pending instead of silently landing somewhere unexpected.
|
|
provisioner: kubernetes.io/no-provisioner
|
|
volumeBindingMode: WaitForFirstConsumer
|
|
reclaimPolicy: Retain
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolume
|
|
metadata:
|
|
name: forgejo-runner-arm64-dind
|
|
labels:
|
|
app: forgejo-runner
|
|
arch: arm64
|
|
spec:
|
|
capacity:
|
|
storage: 200Gi
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
persistentVolumeReclaimPolicy: Retain
|
|
storageClassName: local-static
|
|
volumeMode: Filesystem
|
|
hostPath:
|
|
# Same filesystem/tree the local-path provisioner uses, so df and the
|
|
# existing node-exporter alerting see it as ordinary node disk.
|
|
path: /opt/local-path-provisioner/forgejo-runner-arm64-dind
|
|
type: DirectoryOrCreate
|
|
nodeAffinity:
|
|
required:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: kubernetes.io/hostname
|
|
operator: In
|
|
values:
|
|
- rpi
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: forgejo-runner-arm64-dind
|
|
namespace: ci-runners
|
|
labels:
|
|
app: forgejo-runner
|
|
arch: arm64
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
storageClassName: local-static
|
|
volumeName: forgejo-runner-arm64-dind
|
|
resources:
|
|
requests:
|
|
storage: 200Gi
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolume
|
|
metadata:
|
|
name: forgejo-runner-deploy-arm64-dind
|
|
labels:
|
|
app: forgejo-runner
|
|
role: deploy
|
|
spec:
|
|
capacity:
|
|
storage: 40Gi
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
persistentVolumeReclaimPolicy: Retain
|
|
storageClassName: local-static
|
|
volumeMode: Filesystem
|
|
hostPath:
|
|
path: /opt/local-path-provisioner/forgejo-runner-deploy-arm64-dind
|
|
type: DirectoryOrCreate
|
|
nodeAffinity:
|
|
required:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: kubernetes.io/hostname
|
|
operator: In
|
|
values:
|
|
- rpi
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: forgejo-runner-deploy-arm64-dind
|
|
namespace: ci-runners
|
|
labels:
|
|
app: forgejo-runner
|
|
role: deploy
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
storageClassName: local-static
|
|
volumeName: forgejo-runner-deploy-arm64-dind
|
|
resources:
|
|
requests:
|
|
storage: 40Gi
|