Open kasey-weirich opened 2 years ago
I believe I finally figured this out, in my runner spec yaml file, I changed the name of the runner pool and am now seeing runner pods in my new cluster. Previously named runner-pool
.
apiVersion: garo.tietoevry.com/v1alpha1
kind: GithubActionRunner
metadata:
name: runner-pool-test-01
namespace: runner-operator
spec:
minRunners: 2
maxRunners: 20
organization: myOrgo
reconciliationPeriod: 30s
podTemplateSpec:
metadata:
annotations:
"prometheus.io/scrape": "true"
"prometheus.io/port": "3903"
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
topologyKey: kubernetes.io/hostname
labelSelector:
matchExpressions:
- key: garo.tietoevry.com/pool
operator: In
values:
- runner-pool-test-01
Even if the operator is on a completely different cluster, using the same runner pool name in the runner spec results in zero runner pods getting created.
Would it be useful to update the README with something mentioning using the operator/runner pool across multiple clusters/lifecycles/env's?
We have multiple environments set up for development/staging work and I am trying to migrate our runner operator and runner pool to a new GKE cluster. Currently our development ecosystem (on GKE) is working as expected with the runner operator scheduling pods as new jobs come up.
This is all configured on the same GH org.
I am trying to migrate to a new cluster using the same GitHub app as a K8s secrets in the new cluster (assuming the GH app can be reused). I have installed the runner operator via Helm and have supplied the GitHub app secrets in the values file. The operator installs with no issues observed in the logs.
When I install the runner pool on the new cluster it shows
ReconcileSuccess
however, the Current size is always 0;I have tried:
The runner operator logs do not give any indication of why I am not seeing any runners, everything appears to be working:
Thank you for any pointers you can provide.