|
1 | | -# -------------------------------------------------------------------- |
2 | | -# GitHub configuration |
3 | | -# -------------------------------------------------------------------- |
4 | | -githubConfigUrl: "https://github.com/joshyorko/fetch-repos-bot" |
5 | | -githubConfigSecret: pre-defined-secret |
| 1 | +runnerScaleSetName: fetch-repos-bot-runner-k8s-kaniko |
6 | 2 |
|
7 | | -# -------------------------------------------------------------------- |
8 | | -# Runner scale set configuration for Kaniko builds |
9 | | -# -------------------------------------------------------------------- |
10 | | -runnerScaleSetName: "fetch-repos-bot-runner-k8s-kaniko" |
| 3 | +githubConfigUrl: https://github.com/joshyorko/fetch-repos-bot |
| 4 | +githubConfigSecret: pre-defined-secret # PAT or GitHub App for runner registration |
11 | 5 |
|
12 | | -# -------------------------------------------------------------------- |
13 | | -# Kubernetes container mode configuration |
14 | | -# -------------------------------------------------------------------- |
15 | 6 | containerMode: |
16 | | - type: "kubernetes" |
| 7 | + type: kubernetes |
17 | 8 | kubernetesModeWorkVolumeClaim: |
| 9 | + storageClassName: local-path |
18 | 10 | accessModes: ["ReadWriteOnce"] |
19 | | - storageClassName: "local-path" # Adjust for your cluster (e.g., gp2, local-path, etc.) |
20 | 11 | resources: |
21 | | - requests: |
22 | | - storage: 5Gi # Kaniko needs scratch space for layer cache and build context |
| 12 | + requests: { storage: 5Gi } |
23 | 13 |
|
24 | | -# -------------------------------------------------------------------- |
25 | | -# Runner Pod template configuration for Kaniko |
26 | | -# -------------------------------------------------------------------- |
27 | 14 | template: |
28 | 15 | spec: |
29 | | - # Removed dnsPolicy and dnsConfig to use cluster defaults |
30 | | - |
31 | | - # Image pull secrets for accessing private container registries |
32 | | - imagePullSecrets: |
33 | | - - name: ghcr-login # Secret for GHCR authentication |
34 | | - |
| 16 | + # let Kaniko write its own auth file, no extra volumes needed |
| 17 | + imagePullSecrets: [{ name: ghcr-login }] |
35 | 18 | containers: |
36 | 19 | - name: runner |
37 | | - image: ghcr.io/actions/actions-runner:latest # Use stock GitHub Actions runner image |
38 | | - imagePullPolicy: Always |
| 20 | + image: ghcr.io/actions/actions-runner:latest |
39 | 21 | command: ["/home/runner/run.sh"] |
40 | | - resources: |
41 | | - requests: |
42 | | - cpu: "500m" |
43 | | - memory: "1Gi" |
44 | | - limits: |
45 | | - cpu: "500m" |
46 | | - memory: "1Gi" |
47 | | - |
48 | | - # Environment variables for Kaniko authentication |
49 | 22 | env: |
50 | | - - name: DOCKER_CONFIG |
51 | | - value: "/kaniko/.docker/" |
52 | | - |
53 | | - # Volume mounts for Kaniko authentication |
54 | | - volumeMounts: |
55 | | - - name: docker-config |
56 | | - mountPath: /kaniko/.docker |
57 | | - readOnly: true |
58 | | - |
59 | | - # Volumes for Kaniko authentication |
60 | | - volumes: |
61 | | - - name: docker-config |
62 | | - secret: |
63 | | - secretName: ghcr-login |
64 | | - items: |
65 | | - - key: .dockerconfigjson |
66 | | - path: config.json |
67 | | - |
68 | | -# Add jobTemplate block to mount the secret into every job-pod |
69 | | -# values-kaniko.yaml (replace the whole jobTemplate with this) |
70 | | -jobTemplate: |
71 | | - spec: |
72 | | - # add the secret volume |
73 | | - volumes: |
74 | | - - name: docker-config |
75 | | - secret: |
76 | | - secretName: ghcr-login |
77 | | - items: |
78 | | - - key: .dockerconfigjson |
79 | | - path: config.json |
80 | | - # patch *all* containers (no name field → merge into every container) |
81 | | - containers: |
82 | | - - volumeMounts: |
83 | | - - name: docker-config |
84 | | - mountPath: /kaniko/.docker |
85 | | - readOnly: true |
86 | | - env: # (optional but nice) |
87 | | - - name: DOCKER_CONFIG |
88 | | - value: /kaniko/.docker |
89 | | - |
90 | | -# -------------------------------------------------------------------- |
91 | | -# Scaling configuration |
92 | | -# -------------------------------------------------------------------- |
93 | | -maxRunners: 3 # Reduced since Kaniko builds are more resource-efficient |
94 | | -minRunners: 0 |
95 | | - |
96 | | -# -------------------------------------------------------------------- |
97 | | -# RBAC for Kubernetes container mode |
98 | | -# This is automatically handled by the ARC Helm chart when containerMode.type is set to "kubernetes" |
99 | | -# The chart will create the necessary ServiceAccount, Role, and RoleBinding for: |
100 | | -# - Creating/managing pods in the namespace |
101 | | -# - Creating/managing secrets for job isolation |
102 | | -# - Creating/managing PVCs for work volumes |
103 | | -# -------------------------------------------------------------------- |
| 23 | + - name: ACTIONS_RUNNER_REQUIRE_JOB_CONTAINER |
| 24 | + value: "false" # lets you mix shell + container steps |
0 commit comments