Skip to content

Commit

Permalink
remove affinity (artifact from copy over), fix yaml parse error in 32c
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Sica <me@jeefy.dev>
  • Loading branch information
jeefy committed Oct 11, 2024
1 parent bdc90e7 commit b2e78e1
Show file tree
Hide file tree
Showing 15 changed files with 373 additions and 75 deletions.
7 changes: 1 addition & 6 deletions ci/cluster/equinix/arc/argo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,9 @@ spec:
sources:
- chart: gha-runner-scale-set-controller
repoURL: ghcr.io/actions/actions-runner-controller-charts
targetRevision: 0.9.3
targetRevision: 0.9.2
helm:
releaseName: cncf-gha-controller
valueFiles:
- $values/ci/cluster/equinix/arc/values.yaml
- repoURL: 'https://github.com/cncf/automation.git'
targetRevision: main
ref: values
destination:
server: "https://kubernetes.default.svc"
namespace: arc-systems
Expand Down
4 changes: 0 additions & 4 deletions ci/cluster/equinix/arc/values.yaml

This file was deleted.

6 changes: 6 additions & 0 deletions ci/cluster/equinix/argo-automation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Application
metadata:
name: github-arc
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
syncPolicy:
automated:
Expand All @@ -22,6 +24,8 @@ kind: Application
metadata:
name: equinix-autoscaler
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "1"
spec:
syncPolicy:
automated:
Expand All @@ -41,6 +45,8 @@ kind: Application
metadata:
name: github-runners
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "3"
spec:
syncPolicy:
automated:
Expand Down
6 changes: 3 additions & 3 deletions ci/cluster/equinix/runners/16cpu-64gb/argo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
spec:
project: default
sources:
- chart: gha-runner-scale-set-controller
- chart: gha-runner-scale-set
repoURL: ghcr.io/actions/actions-runner-controller-charts
targetRevision: 0.9.3
targetRevision: 0.9.2
helm:
releaseName: equinix-16cpu-64gb
valueFiles:
Expand All @@ -18,7 +18,7 @@ spec:
ref: values
destination:
server: "https://kubernetes.default.svc"
namespace: equinix-16cpu-64gb
namespace: arc-systems
syncPolicy:
automated:
prune: true
Expand Down
24 changes: 15 additions & 9 deletions ci/cluster/equinix/runners/16cpu-64gb/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## githubConfigUrl is the GitHub url for where you want to configure runners
## ex: https://github.com/myorg/myrepo or https://github.com/myorg
githubConfigUrl: https://github.com/enterprises/cncf

## githubConfigSecret is the k8s secrets to use when auth with GitHub API.
## You can choose to use GitHub App or a PAT token
githubConfigSecret: github-arc-secret

controllerServiceAccount:
namespace: arc-systems
name: cncf-gha-controller-gha-rs-controller
## proxy can be used to define proxy settings that will be used by the
## controller, the listener and the runner of this scale set.
#
Expand Down Expand Up @@ -81,6 +92,10 @@ listenerTemplate:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
containers:
- name: listener
securityContext:
runAsUser: 1000
# containers:
# # Use this section to append additional configuration to the listener container.
# # If you change the name of the container, the configuration will not be applied to the listener,
Expand Down Expand Up @@ -177,15 +192,6 @@ template:
## requests:
## storage: 1Gi
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node.kubernetes.io/instance-type
operator: In
values:
- c3.medium.x86
containers:
- name: runner
image: ghcr.io/jeefy/gha-runner:main
Expand Down
6 changes: 3 additions & 3 deletions ci/cluster/equinix/runners/2cpu-8gb/argo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
spec:
project: default
sources:
- chart: gha-runner-scale-set-controller
- chart: gha-runner-scale-set
repoURL: ghcr.io/actions/actions-runner-controller-charts
targetRevision: 0.9.3
targetRevision: 0.9.2
helm:
releaseName: equinix-2cpu-8gb
valueFiles:
Expand All @@ -18,7 +18,7 @@ spec:
ref: values
destination:
server: "https://kubernetes.default.svc"
namespace: equinix-2cpu-8gb
namespace: arc-systems
syncPolicy:
automated:
prune: true
Expand Down
26 changes: 16 additions & 10 deletions ci/cluster/equinix/runners/2cpu-8gb/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## githubConfigUrl is the GitHub url for where you want to configure runners
## ex: https://github.com/myorg/myrepo or https://github.com/myorg
githubConfigUrl: https://github.com/enterprises/cncf

## githubConfigSecret is the k8s secrets to use when auth with GitHub API.
## You can choose to use GitHub App or a PAT token
githubConfigSecret: github-arc-secret

controllerServiceAccount:
namespace: arc-systems
name: cncf-gha-controller-gha-rs-controller
## proxy can be used to define proxy settings that will be used by the
## controller, the listener and the runner of this scale set.
#
Expand Down Expand Up @@ -81,6 +92,10 @@ listenerTemplate:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
containers:
- name: listener
securityContext:
runAsUser: 1000
# containers:
# # Use this section to append additional configuration to the listener container.
# # If you change the name of the container, the configuration will not be applied to the listener,
Expand Down Expand Up @@ -176,16 +191,7 @@ template:
## resources:
## requests:
## storage: 1Gi
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node.kubernetes.io/instance-type
operator: In
values:
- c3.small.x86
spec:
containers:
- name: runner
image: ghcr.io/jeefy/gha-runner:main
Expand Down
6 changes: 3 additions & 3 deletions ci/cluster/equinix/runners/32cpu-256gb/argo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
spec:
project: default
sources:
- chart: gha-runner-scale-set-controller
- chart: gha-runner-scale-set
repoURL: ghcr.io/actions/actions-runner-controller-charts
targetRevision: 0.9.3
targetRevision: 0.9.2
helm:
releaseName: equinix-32cpu-256gb
valueFiles:
Expand All @@ -18,7 +18,7 @@ spec:
ref: values
destination:
server: "https://kubernetes.default.svc"
namespace: equinix-32cpu-256gb
namespace: arc-systems
syncPolicy:
automated:
prune: true
Expand Down
31 changes: 19 additions & 12 deletions ci/cluster/equinix/runners/32cpu-256gb/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## githubConfigUrl is the GitHub url for where you want to configure runners
## ex: https://github.com/myorg/myrepo or https://github.com/myorg
githubConfigUrl: https://github.com/enterprises/cncf

## githubConfigSecret is the k8s secrets to use when auth with GitHub API.
## You can choose to use GitHub App or a PAT token
githubConfigSecret: github-arc-secret

controllerServiceAccount:
namespace: arc-systems
name: cncf-gha-controller-gha-rs-controller
## proxy can be used to define proxy settings that will be used by the
## controller, the listener and the runner of this scale set.
#
Expand All @@ -13,7 +24,7 @@
# - example.org

## maxRunners is the max number of runners the autoscaling runner set will scale up to.
maxRunners: 10
maxRunners: 20

## minRunners is the min number of idle runners. The target number of runners created will be
## calculated as a sum of minRunners and the number of jobs assigned to the scale set.
Expand Down Expand Up @@ -80,7 +91,12 @@ listenerTemplate:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists# containers:
operator: Exists
containers:
- name: listener
securityContext:
runAsUser: 1000
# containers:
# # Use this section to append additional configuration to the listener container.
# # If you change the name of the container, the configuration will not be applied to the listener,
# # and it will be treated as a side-car container.
Expand Down Expand Up @@ -176,16 +192,7 @@ template:
## requests:
## storage: 1Gi
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node.kubernetes.io/instance-type
operator: In
values:
- m3.large.x86
containers:
containers:
- name: runner
image: ghcr.io/jeefy/gha-runner:main
imagePullPolicy: Always
Expand Down
6 changes: 3 additions & 3 deletions ci/cluster/equinix/runners/4cpu-16gb/argo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ metadata:
spec:
project: default
sources:
- chart: gha-runner-scale-set-controller
- chart: gha-runner-scale-set
repoURL: ghcr.io/actions/actions-runner-controller-charts
targetRevision: 0.9.3
targetRevision: 0.9.2
helm:
releaseName: equinix-4cpu-16gb
valueFiles:
Expand All @@ -18,7 +18,7 @@ spec:
ref: values
destination:
server: "https://kubernetes.default.svc"
namespace: equinix-4cpu-16gb
namespace: arc-systems
syncPolicy:
automated:
prune: true
Expand Down
24 changes: 15 additions & 9 deletions ci/cluster/equinix/runners/4cpu-16gb/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## githubConfigUrl is the GitHub url for where you want to configure runners
## ex: https://github.com/myorg/myrepo or https://github.com/myorg
githubConfigUrl: https//github.com/enterprises/cncf

## githubConfigSecret is the k8s secrets to use when auth with GitHub API.
## You can choose to use GitHub App or a PAT token
githubConfigSecret: github-arc-secret

controllerServiceAccount:
namespace: arc-systems
name: cncf-gha-controller-gha-rs-controller
## proxy can be used to define proxy settings that will be used by the
## controller, the listener and the runner of this scale set.
#
Expand Down Expand Up @@ -81,6 +92,10 @@ listenerTemplate:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
containers:
- name: listener
securityContext:
runAsUser: 1000
# containers:
# # Use this section to append additional configuration to the listener container.
# # If you change the name of the container, the configuration will not be applied to the listener,
Expand Down Expand Up @@ -177,15 +192,6 @@ template:
## requests:
## storage: 1Gi
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node.kubernetes.io/instance-type
operator: In
values:
- c3.small.x86
containers:
- name: runner
image: ghcr.io/jeefy/gha-runner:main
Expand Down
28 changes: 28 additions & 0 deletions ci/cluster/equinix/runners/8cpu-32gb/argo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: equinix-8cpu-32gb
namespace: argocd
spec:
project: default
sources:
- chart: gha-runner-scale-set
repoURL: ghcr.io/actions/actions-runner-controller-charts
targetRevision: 0.9.2
helm:
releaseName: equinix-8cpu-32gb
valueFiles:
- $values/ci/cluster/equinix/runners/8cpu-32gb/values.yaml
- repoURL: 'https://github.com/cncf/automation.git'
targetRevision: main
ref: values
destination:
server: "https://kubernetes.default.svc"
namespace: arc-systems
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
Loading

0 comments on commit b2e78e1

Please sign in to comment.