Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# - runAsGroup 0: containerbase images (renovate) keep their tool dirs
# group-0-writable for arbitrary uids.
# - no ServiceAccount token: these jobs never talk to the Kubernetes API.
# - /cache = persistent RWX workspace (pvc.yaml) so runs start warm; fsGroup
# 1001 makes it writable (and adds gid 1001 as a supplemental group).
apiVersion: v1
kind: ConfigMap
metadata:
Expand All @@ -15,6 +17,9 @@ data:
job.yaml: |
spec:
automountServiceAccountToken: false
securityContext:
fsGroup: 1001
fsGroupChangePolicy: OnRootMismatch
containers:
- name: $job
securityContext:
Expand All @@ -24,3 +29,10 @@ data:
env:
- name: HOME
value: /tmp
volumeMounts:
- name: cache
mountPath: /cache
volumes:
- name: cache
persistentVolumeClaim:
claimName: dapper-cluster-unprivileged-cache
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ kind: Kustomization
resources:
- ./configmap.yaml
- ./helmrelease.yaml
- ./pvc.yaml
- ./rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
# Persistent workspace for job containers on the unprivileged runner set
# (mounted at /cache by the hook template). Renovate keeps its clone
# (persistRepoData), repository cache, package cache and containerbase tool
# downloads here, so runs only fetch deltas over the WAN instead of starting
# cold. RWX (cephfs) because job pods for different workflows can land on
# different nodes at the same time; workflows use their own subdirectory.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: dapper-cluster-unprivileged-cache
spec:
accessModes: ["ReadWriteMany"]
storageClassName: cephfs-shared
resources:
requests:
storage: 20Gi
Loading