Gitea runner volume configuration

This commit is contained in:
Danny Bessems 2024-06-07 21:59:09 +10:00
parent 6ed843b80d
commit 087a76edb4
5 changed files with 46 additions and 4 deletions

View File

@ -9,18 +9,18 @@ data:
capacity: 2
labels: [dind:docker://node:21-bullseye]
container:
options: "--add-host=docker:host-gateway -v /certs:/certs -v /data:/data -v /output:/output"
options: "--add-host=docker:host-gateway -v /certs:/certs -v /scratch:/scratch -v /output:/output"
valid_volumes:
- /certs
- /data
- /scratch
- /output
dind-rootless-config.yml: |
runner:
capacity: 2
labels: [dind-rootless:docker://node:21-bullseye]
container:
options: "-v /certs:/certs -v /data:/data -v /output:/output"
options: "-v /certs:/certs -v /scratch:/scratch -v /output:/output"
valid_volumes:
- /certs
- /data
- /scratch
- /output

View File

@ -35,6 +35,9 @@ spec:
- name: flexvolsmb-runner-output
persistentVolumeClaim:
claimName: flexvolsmb-runner-output
- name: flexvolsmb-runner-scratch
persistentVolumeClaim:
claimName: flexvolsmb-runner-scratch
securityContext:
fsGroup: 1000
containers:
@ -69,3 +72,5 @@ spec:
subPath: dind-rootless-config.yml
- name: flexvolsmb-runner-output
mountPath: /output
- name: flexvolsmb-runner-scratch
mountPath: /scratch

View File

@ -35,6 +35,9 @@ spec:
- name: flexvolsmb-runner-output
persistentVolumeClaim:
claimName: flexvolsmb-runner-output
- name: flexvolsmb-runner-scratch
persistentVolumeClaim:
claimName: flexvolsmb-runner-scratch
containers:
- name: runner
image: gitea/act_runner:nightly
@ -67,6 +70,8 @@ spec:
mountPath: /data
- name: flexvolsmb-runner-output
mountPath: /output
- name: flexvolsmb-runner-scratch
mountPath: /scratch
- name: daemon
image: docker:26.1-dind
args:
@ -81,3 +86,5 @@ spec:
mountPath: /certs
- name: flexvolsmb-runner-output
mountPath: /output
- name: flexvolsmb-runner-scratch
mountPath: /scratch

View File

@ -0,0 +1,18 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-runner-scratch
spec:
capacity:
storage: 50Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-runner-scratch
flexVolume:
driver: mount/smb
secretRef:
name: flexvolsmb-credentials
options:
opts: file_mode=0777,dir_mode=0777,iocharset=utf8
server: 192.168.154.225
share: /K3s.Volumes/gitea/runner/scratch

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flexvolsmb-runner-scratch
namespace: gitea
spec:
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-runner-scratch
resources:
requests:
storage: 50Gi