From f9dc0102aa349157a0efcf53ba5bccb3a05dbaae Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 7 Sep 2025 12:11:44 -0500 Subject: [PATCH] jenkins: Add PVC for Buildroot jobs Buildroot jobs really benefit from having a persistent workspace volume instead of an ephemeral one. This way, only the packages, etc. that have changed since the last build need to be built, instead of the whole toolchain and operating system. --- jenkins/kustomization.yaml | 1 + jenkins/workspace-volume.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 jenkins/workspace-volume.yaml diff --git a/jenkins/kustomization.yaml b/jenkins/kustomization.yaml index d2140f8..c64b00b 100644 --- a/jenkins/kustomization.yaml +++ b/jenkins/kustomization.yaml @@ -10,6 +10,7 @@ resources: - secrets.yaml - iscsi.yaml - ssh-host-keys +- workspace-volume.yaml patches: - patch: | diff --git a/jenkins/workspace-volume.yaml b/jenkins/workspace-volume.yaml new file mode 100644 index 0000000..5f42642 --- /dev/null +++ b/jenkins/workspace-volume.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: buildroot + labels: + app.kubernetes.io/name: buildroot + app.kubernetes.io/component: jenkins +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 100Gi + storageClassName: synology-iscsi