diff --git a/k8s/apps/gitea/deployment.yaml b/k8s/apps/gitea/deployment.yaml index faee8da5..9cf12292 100644 --- a/k8s/apps/gitea/deployment.yaml +++ b/k8s/apps/gitea/deployment.yaml @@ -70,20 +70,23 @@ spec: app: gitea-runner spec: nodeSelector: - #kubernetes.io/hostname: master.tail2fe2d.ts.net kubernetes.io/hostname: home.homenet volumes: - name: docker-sock hostPath: - #path: /var/run/k3s/containerd/containerd.sock path: /var/run/docker.sock type: Socket + - name: runner-data + persistentVolumeClaim: + claimName: gitea-runner-pvc containers: - name: gitea-runner image: gitea/act_runner:nightly volumeMounts: - name: docker-sock mountPath: /var/run/docker.sock + - name: runner-data + mountPath: /data env: - name: GITEA_INSTANCE_URL value: "https://gt.hexor.cy" @@ -95,4 +98,18 @@ spec: - name: GITEA_RUNNER_NAME value: "k8s-runner" - name: GITEA_RUNNER_LABELS - value: "ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest,ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:act-22.04,ubuntu-20.04:docker://ghcr.io/catthehacker/ubuntu:act-20.04" \ No newline at end of file + value: "ubuntu-latest:docker://ghcr.io/catthehacker/ubuntu:act-latest,ubuntu-22.04:docker://ghcr.io/catthehacker/ubuntu:act-22.04,ubuntu-20.04:docker://ghcr.io/catthehacker/ubuntu:act-20.04" + +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: gitea-runner-pvc +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + storageClassName: local-path +