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 capacity: 2
labels: [dind:docker://node:21-bullseye] labels: [dind:docker://node:21-bullseye]
container: 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: valid_volumes:
- /certs - /certs
- /data - /scratch
- /output - /output
dind-rootless-config.yml: | dind-rootless-config.yml: |
runner: runner:
capacity: 2 capacity: 2
labels: [dind-rootless:docker://node:21-bullseye] labels: [dind-rootless:docker://node:21-bullseye]
container: container:
options: "-v /certs:/certs -v /data:/data -v /output:/output" options: "-v /certs:/certs -v /scratch:/scratch -v /output:/output"
valid_volumes: valid_volumes:
- /certs - /certs
- /data - /scratch
- /output - /output

View File

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

View File

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