--- # 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: forgejo 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: forgejo labels: app: forgejo-runner role: deploy spec: accessModes: - ReadWriteOnce storageClassName: local-static volumeName: forgejo-runner-deploy-arm64-dind resources: requests: storage: 40Gi