The Pi's host Docker is no longer the arm64 job-container daemon. Both forgejo-runner-arm64 and forgejo-runner-deploy-arm64 now run a privileged docker:27-dind sidecar (--mtu=1420, socket on an emptyDir shared with the runner, data-root on a PVC), the same shape as forgejo-runner-amd64. - labels preserved verbatim: shared keeps docker-arm64/arm64/docker, deploy keeps deploy-arm64 only; capacity 1 on both - runner.ini moved from hostPath to the data PVC by copy, uuid preserved (4e07c1e9... / a41aad73...); the deploy runner's register init container is inverted into a guard so a missing file cannot burn a token and create a second runner - dind limits.memory 4Gi (measured peak 3.10GiB) and 2Gi for the deploy runner so a CI run and a deploy cannot both claim the Pi's 7GiB - static hostPath PVs pinned to rpi with Retain: dynamic local-path cannot provision there (helper pod hardcoded to siriussec) - docker CLI/buildx come from the dind image instead of the host's docker-static - Pi registry additionally published on 10.10.0.1:5000 (out of band on the Pi) - RpiDindDataRootFillingUp at 70%: the real cap, since a static PV does not enforce its claim and kubelet_volume_stats_* does not exist here Design and measured proof: docs/arm64-runner-dind.md (t_627c231c).
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: 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
|