Until I get the storage VLAN connected to the Raspberry Pi cluster, any Pod that needs a PV backed by the Synology has to run on a VM node.
63 lines
1.2 KiB
YAML
63 lines
1.2 KiB
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
|
|
- updatecheck.yaml
|
|
|
|
configMapGenerator:
|
|
- name: updatecheck
|
|
namespace: jenkins
|
|
files:
|
|
- config.toml=updatecheck.toml
|
|
options:
|
|
disableNameSuffixHash: true
|
|
labels:
|
|
app.kubernetes.io/name: updatecheck
|
|
app.kubernetes.io/component: updatecheck
|
|
|
|
patches:
|
|
- patch: |
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: jenkins
|
|
namespace: jenkins
|
|
spec:
|
|
volumeName: jenkins
|
|
storageClassName: ''
|
|
|
|
- patch: |-
|
|
apiVersion: batch/v1
|
|
kind: CronJob
|
|
metadata:
|
|
name: updatecheck
|
|
namespace: jenkins
|
|
spec:
|
|
jobTemplate:
|
|
spec:
|
|
template:
|
|
spec:
|
|
nodeSelector:
|
|
network.du5t1n.me/storage: 'true'
|
|
- patch: |
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: updatecheck
|
|
namespace: jenkins
|
|
spec:
|
|
storageClassName: synology-iscsi
|
|
|
|
images:
|
|
- name: docker.io/jenkins/jenkins
|
|
newTag: 2.528.2-lts
|