From d8dd1c19d5ebe642834c1922776299b60ee36bd5 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Fri, 7 Jun 2024 21:01:42 +1000 Subject: [PATCH] Add volume mounts for storing artifacts --- .../deployment-act-runner-dind-rootless.yaml | 5 +++++ services/Gitea/deployment-act-runner-dind.yaml | 7 +++++++ ...sistentvolume-flexvolsmb-runner-output.yaml | 18 ++++++++++++++++++ ...ntvolumeclaim-flexvolsmb-runner-output.yaml | 12 ++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 services/Gitea/persistentvolume-flexvolsmb-runner-output.yaml create mode 100644 services/Gitea/persistentvolumeclaim-flexvolsmb-runner-output.yaml diff --git a/services/Gitea/deployment-act-runner-dind-rootless.yaml b/services/Gitea/deployment-act-runner-dind-rootless.yaml index 56211cd..70e9b1e 100644 --- a/services/Gitea/deployment-act-runner-dind-rootless.yaml +++ b/services/Gitea/deployment-act-runner-dind-rootless.yaml @@ -32,6 +32,9 @@ spec: - name: runner-data persistentVolumeClaim: claimName: act-runner-dind-rootless + - name: flexvolsmb-runner-output + persistentVolumeClaim: + claimName: flexvolsmb-runner-output securityContext: fsGroup: 1000 containers: @@ -64,3 +67,5 @@ spec: - name: runner-config mountPath: /opt/act/config.yml subPath: dind-rootless-config.yml + - name: flexvolsmb-runner-output + mountPath: /output diff --git a/services/Gitea/deployment-act-runner-dind.yaml b/services/Gitea/deployment-act-runner-dind.yaml index e99d624..7f3fc9a 100644 --- a/services/Gitea/deployment-act-runner-dind.yaml +++ b/services/Gitea/deployment-act-runner-dind.yaml @@ -32,6 +32,9 @@ spec: - name: runner-data persistentVolumeClaim: claimName: act-runner-dind + - name: flexvolsmb-runner-output + persistentVolumeClaim: + claimName: flexvolsmb-runner-output containers: - name: runner image: gitea/act_runner:nightly @@ -62,6 +65,8 @@ spec: mountPath: /certs - name: runner-data mountPath: /data + - name: flexvolsmb-runner-output + mountPath: /output - name: daemon image: docker:26.1-dind args: @@ -74,3 +79,5 @@ spec: volumeMounts: - name: docker-certs mountPath: /certs + - name: flexvolsmb-runner-output + mountPath: /output diff --git a/services/Gitea/persistentvolume-flexvolsmb-runner-output.yaml b/services/Gitea/persistentvolume-flexvolsmb-runner-output.yaml new file mode 100644 index 0000000..b46027d --- /dev/null +++ b/services/Gitea/persistentvolume-flexvolsmb-runner-output.yaml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: flexvolsmb-runner-output +spec: + capacity: + storage: 50Gi + accessModes: + - ReadWriteMany + storageClassName: flexvolsmb-runner-output + 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/lighttpd/websites/sn.itch.fyi/Repository/rel diff --git a/services/Gitea/persistentvolumeclaim-flexvolsmb-runner-output.yaml b/services/Gitea/persistentvolumeclaim-flexvolsmb-runner-output.yaml new file mode 100644 index 0000000..d3c134c --- /dev/null +++ b/services/Gitea/persistentvolumeclaim-flexvolsmb-runner-output.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: flexvolsmb-runner-output + namespace: gitea +spec: + accessModes: + - ReadWriteMany + storageClassName: flexvolsmb-runner-output + resources: + requests: + storage: 50Gi