actions / actions-runner-controller

Kubernetes controller for GitHub Actions self-hosted runners
Apache License 2.0
4.42k stars 1.04k forks source link

Support building large images in DinD container #3369

Open jrbe228 opened 3 months ago

jrbe228 commented 3 months ago

Store docker image layers in ephemeral PVC to avoid pod eviction due to exceeding storage limits.

This change allowed our organization to build larger docker images (>50GB).

alec-drw commented 3 months ago

FWIW our org does this today for both the docker volume and workspace

      volumes:
      - name: tool-cache
        persistentVolumeClaim:
          claimName: tool-cache-enterprise-runnerset-0
      - name: work
        ephemeral:
          volumeClaimTemplate:
            spec:
              accessModes: [ "ReadWriteOnce" ]
              storageClassName: "csi-ceph-rbd-xfs-flash"
              resources:
                requests:
                  storage: 100Gi
      - name: var-lib-docker
        ephemeral:
          volumeClaimTemplate:
            spec:
              accessModes: [ "ReadWriteOnce" ]
              storageClassName: "csi-ceph-rbd-xfs-flash"
              resources:
                requests:
                  storage: 150Gi