Skip to content

Commit b2e78e1

Browse files
committed
remove affinity (artifact from copy over), fix yaml parse error in 32c
Signed-off-by: Jeffrey Sica <[email protected]>
1 parent bdc90e7 commit b2e78e1

File tree

15 files changed

+373
-75
lines changed

15 files changed

+373
-75
lines changed

ci/cluster/equinix/arc/argo.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,9 @@ spec:
88
sources:
99
- chart: gha-runner-scale-set-controller
1010
repoURL: ghcr.io/actions/actions-runner-controller-charts
11-
targetRevision: 0.9.3
11+
targetRevision: 0.9.2
1212
helm:
1313
releaseName: cncf-gha-controller
14-
valueFiles:
15-
- $values/ci/cluster/equinix/arc/values.yaml
16-
- repoURL: 'https://github.com/cncf/automation.git'
17-
targetRevision: main
18-
ref: values
1914
destination:
2015
server: "https://kubernetes.default.svc"
2116
namespace: arc-systems

ci/cluster/equinix/arc/values.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

ci/cluster/equinix/argo-automation.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ kind: Application
33
metadata:
44
name: github-arc
55
namespace: argocd
6+
annotations:
7+
argocd.argoproj.io/sync-wave: "2"
68
spec:
79
syncPolicy:
810
automated:
@@ -22,6 +24,8 @@ kind: Application
2224
metadata:
2325
name: equinix-autoscaler
2426
namespace: argocd
27+
annotations:
28+
argocd.argoproj.io/sync-wave: "1"
2529
spec:
2630
syncPolicy:
2731
automated:
@@ -41,6 +45,8 @@ kind: Application
4145
metadata:
4246
name: github-runners
4347
namespace: argocd
48+
annotations:
49+
argocd.argoproj.io/sync-wave: "3"
4450
spec:
4551
syncPolicy:
4652
automated:

ci/cluster/equinix/runners/16cpu-64gb/argo.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ metadata:
66
spec:
77
project: default
88
sources:
9-
- chart: gha-runner-scale-set-controller
9+
- chart: gha-runner-scale-set
1010
repoURL: ghcr.io/actions/actions-runner-controller-charts
11-
targetRevision: 0.9.3
11+
targetRevision: 0.9.2
1212
helm:
1313
releaseName: equinix-16cpu-64gb
1414
valueFiles:
@@ -18,7 +18,7 @@ spec:
1818
ref: values
1919
destination:
2020
server: "https://kubernetes.default.svc"
21-
namespace: equinix-16cpu-64gb
21+
namespace: arc-systems
2222
syncPolicy:
2323
automated:
2424
prune: true

ci/cluster/equinix/runners/16cpu-64gb/values.yaml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## githubConfigUrl is the GitHub url for where you want to configure runners
2+
## ex: https://github.com/myorg/myrepo or https://github.com/myorg
3+
githubConfigUrl: https://github.com/enterprises/cncf
4+
5+
## githubConfigSecret is the k8s secrets to use when auth with GitHub API.
6+
## You can choose to use GitHub App or a PAT token
7+
githubConfigSecret: github-arc-secret
8+
9+
controllerServiceAccount:
10+
namespace: arc-systems
11+
name: cncf-gha-controller-gha-rs-controller
112
## proxy can be used to define proxy settings that will be used by the
213
## controller, the listener and the runner of this scale set.
314
#
@@ -81,6 +92,10 @@ listenerTemplate:
8192
- matchExpressions:
8293
- key: node-role.kubernetes.io/control-plane
8394
operator: Exists
95+
containers:
96+
- name: listener
97+
securityContext:
98+
runAsUser: 1000
8499
# containers:
85100
# # Use this section to append additional configuration to the listener container.
86101
# # If you change the name of the container, the configuration will not be applied to the listener,
@@ -177,15 +192,6 @@ template:
177192
## requests:
178193
## storage: 1Gi
179194
spec:
180-
affinity:
181-
nodeAffinity:
182-
requiredDuringSchedulingIgnoredDuringExecution:
183-
nodeSelectorTerms:
184-
- matchExpressions:
185-
- key: node.kubernetes.io/instance-type
186-
operator: In
187-
values:
188-
- c3.medium.x86
189195
containers:
190196
- name: runner
191197
image: ghcr.io/jeefy/gha-runner:main

ci/cluster/equinix/runners/2cpu-8gb/argo.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ metadata:
66
spec:
77
project: default
88
sources:
9-
- chart: gha-runner-scale-set-controller
9+
- chart: gha-runner-scale-set
1010
repoURL: ghcr.io/actions/actions-runner-controller-charts
11-
targetRevision: 0.9.3
11+
targetRevision: 0.9.2
1212
helm:
1313
releaseName: equinix-2cpu-8gb
1414
valueFiles:
@@ -18,7 +18,7 @@ spec:
1818
ref: values
1919
destination:
2020
server: "https://kubernetes.default.svc"
21-
namespace: equinix-2cpu-8gb
21+
namespace: arc-systems
2222
syncPolicy:
2323
automated:
2424
prune: true

ci/cluster/equinix/runners/2cpu-8gb/values.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## githubConfigUrl is the GitHub url for where you want to configure runners
2+
## ex: https://github.com/myorg/myrepo or https://github.com/myorg
3+
githubConfigUrl: https://github.com/enterprises/cncf
4+
5+
## githubConfigSecret is the k8s secrets to use when auth with GitHub API.
6+
## You can choose to use GitHub App or a PAT token
7+
githubConfigSecret: github-arc-secret
8+
9+
controllerServiceAccount:
10+
namespace: arc-systems
11+
name: cncf-gha-controller-gha-rs-controller
112
## proxy can be used to define proxy settings that will be used by the
213
## controller, the listener and the runner of this scale set.
314
#
@@ -81,6 +92,10 @@ listenerTemplate:
8192
- matchExpressions:
8293
- key: node-role.kubernetes.io/control-plane
8394
operator: Exists
95+
containers:
96+
- name: listener
97+
securityContext:
98+
runAsUser: 1000
8499
# containers:
85100
# # Use this section to append additional configuration to the listener container.
86101
# # If you change the name of the container, the configuration will not be applied to the listener,
@@ -176,16 +191,7 @@ template:
176191
## resources:
177192
## requests:
178193
## storage: 1Gi
179-
spec:
180-
affinity:
181-
nodeAffinity:
182-
requiredDuringSchedulingIgnoredDuringExecution:
183-
nodeSelectorTerms:
184-
- matchExpressions:
185-
- key: node.kubernetes.io/instance-type
186-
operator: In
187-
values:
188-
- c3.small.x86
194+
spec:
189195
containers:
190196
- name: runner
191197
image: ghcr.io/jeefy/gha-runner:main

ci/cluster/equinix/runners/32cpu-256gb/argo.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ metadata:
66
spec:
77
project: default
88
sources:
9-
- chart: gha-runner-scale-set-controller
9+
- chart: gha-runner-scale-set
1010
repoURL: ghcr.io/actions/actions-runner-controller-charts
11-
targetRevision: 0.9.3
11+
targetRevision: 0.9.2
1212
helm:
1313
releaseName: equinix-32cpu-256gb
1414
valueFiles:
@@ -18,7 +18,7 @@ spec:
1818
ref: values
1919
destination:
2020
server: "https://kubernetes.default.svc"
21-
namespace: equinix-32cpu-256gb
21+
namespace: arc-systems
2222
syncPolicy:
2323
automated:
2424
prune: true

ci/cluster/equinix/runners/32cpu-256gb/values.yaml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## githubConfigUrl is the GitHub url for where you want to configure runners
2+
## ex: https://github.com/myorg/myrepo or https://github.com/myorg
3+
githubConfigUrl: https://github.com/enterprises/cncf
4+
5+
## githubConfigSecret is the k8s secrets to use when auth with GitHub API.
6+
## You can choose to use GitHub App or a PAT token
7+
githubConfigSecret: github-arc-secret
8+
9+
controllerServiceAccount:
10+
namespace: arc-systems
11+
name: cncf-gha-controller-gha-rs-controller
112
## proxy can be used to define proxy settings that will be used by the
213
## controller, the listener and the runner of this scale set.
314
#
@@ -13,7 +24,7 @@
1324
# - example.org
1425

1526
## maxRunners is the max number of runners the autoscaling runner set will scale up to.
16-
maxRunners: 10
27+
maxRunners: 20
1728

1829
## minRunners is the min number of idle runners. The target number of runners created will be
1930
## calculated as a sum of minRunners and the number of jobs assigned to the scale set.
@@ -80,7 +91,12 @@ listenerTemplate:
8091
nodeSelectorTerms:
8192
- matchExpressions:
8293
- key: node-role.kubernetes.io/control-plane
83-
operator: Exists# containers:
94+
operator: Exists
95+
containers:
96+
- name: listener
97+
securityContext:
98+
runAsUser: 1000
99+
# containers:
84100
# # Use this section to append additional configuration to the listener container.
85101
# # If you change the name of the container, the configuration will not be applied to the listener,
86102
# # and it will be treated as a side-car container.
@@ -176,16 +192,7 @@ template:
176192
## requests:
177193
## storage: 1Gi
178194
spec:
179-
affinity:
180-
nodeAffinity:
181-
requiredDuringSchedulingIgnoredDuringExecution:
182-
nodeSelectorTerms:
183-
- matchExpressions:
184-
- key: node.kubernetes.io/instance-type
185-
operator: In
186-
values:
187-
- m3.large.x86
188-
containers:
195+
containers:
189196
- name: runner
190197
image: ghcr.io/jeefy/gha-runner:main
191198
imagePullPolicy: Always

ci/cluster/equinix/runners/4cpu-16gb/argo.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ metadata:
66
spec:
77
project: default
88
sources:
9-
- chart: gha-runner-scale-set-controller
9+
- chart: gha-runner-scale-set
1010
repoURL: ghcr.io/actions/actions-runner-controller-charts
11-
targetRevision: 0.9.3
11+
targetRevision: 0.9.2
1212
helm:
1313
releaseName: equinix-4cpu-16gb
1414
valueFiles:
@@ -18,7 +18,7 @@ spec:
1818
ref: values
1919
destination:
2020
server: "https://kubernetes.default.svc"
21-
namespace: equinix-4cpu-16gb
21+
namespace: arc-systems
2222
syncPolicy:
2323
automated:
2424
prune: true

0 commit comments

Comments
 (0)