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.
25 lines
411 B
YAML
25 lines
411 B
YAML
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
|
|
labels:
|
|
- pairs:
|
|
app.kubernetes.io/instance: jenkins
|
|
|
|
resources:
|
|
- jenkins.yaml
|
|
- secrets.yaml
|
|
- iscsi.yaml
|
|
- ssh-host-keys
|
|
- workspace-volume.yaml
|
|
|
|
patches:
|
|
- patch: |
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: jenkins
|
|
namespace: jenkins
|
|
spec:
|
|
volumeName: jenkins
|
|
storageClassName: ''
|