Compare commits
8 Commits
d6f4468a9c
...
runners/ad
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59543016c0 | ||
|
|
bc3548e715 | ||
| 74333cc26b | |||
|
|
7310fb88c2 | ||
| 148bc87b9a | |||
|
|
2a1e842100 | ||
| bc28430d24 | |||
|
|
cc92272217 |
@@ -12,6 +12,15 @@ ENV PATH="/home/runner/_tool/Ruby/${RUBY_MINOR}/x64/bin:/opt/runner-toolcache/Ru
|
|||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
|
# Bake the IAmWorkin step-ca root CA into the system trust store. Without
|
||||||
|
# this, .NET HttpClient calls from CI tests against *.iamworkin.lan
|
||||||
|
# (e.g. https://selenium.iamworkin.lan/session) fail with `PartialChain`
|
||||||
|
# because the runner image's default Ubuntu trust bundle doesn't include
|
||||||
|
# our internal Root CA. update-ca-certificates regenerates
|
||||||
|
# /etc/ssl/certs/ca-certificates.crt, which OpenSSL + .NET on Linux read
|
||||||
|
# automatically — no SSL_CERT_FILE env var needed.
|
||||||
|
COPY step-ca-root.crt /usr/local/share/ca-certificates/iamworkin-step-ca-root.crt
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||||
autoconf \
|
autoconf \
|
||||||
@@ -31,6 +40,7 @@ RUN apt-get update \
|
|||||||
pkg-config \
|
pkg-config \
|
||||||
uuid-dev \
|
uuid-dev \
|
||||||
zlib1g-dev \
|
zlib1g-dev \
|
||||||
|
&& update-ca-certificates \
|
||||||
&& curl -fsSL "https://github.com/rbenv/ruby-build/archive/refs/tags/${RUBY_BUILD_VERSION}.tar.gz" -o /tmp/ruby-build.tar.gz \
|
&& curl -fsSL "https://github.com/rbenv/ruby-build/archive/refs/tags/${RUBY_BUILD_VERSION}.tar.gz" -o /tmp/ruby-build.tar.gz \
|
||||||
&& mkdir -p /tmp/ruby-build \
|
&& mkdir -p /tmp/ruby-build \
|
||||||
&& tar -xzf /tmp/ruby-build.tar.gz --strip-components=1 -C /tmp/ruby-build \
|
&& tar -xzf /tmp/ruby-build.tar.gz --strip-components=1 -C /tmp/ruby-build \
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ Deployments with `kubectl`; update this manifest and let ArgoCD reconcile.
|
|||||||
|
|
||||||
All repo-scoped Linux runners use:
|
All repo-scoped Linux runners use:
|
||||||
|
|
||||||
- `localhost/fc-github-runner:v20260520-ruby3.3.11`, derived from
|
- `localhost/fc-github-runner:v20260525-ruby3.3.11-stepca`, derived from
|
||||||
`myoung34/github-runner:latest`
|
`myoung34/github-runner:latest`
|
||||||
- `ACCESS_TOKEN` from the `github-runner-token` Secret
|
- `ACCESS_TOKEN` from the `github-runner-token` Secret
|
||||||
- `RUN_AS_ROOT=false`
|
- `RUN_AS_ROOT=false`
|
||||||
@@ -40,14 +40,26 @@ still mounts an `emptyDir` over `/home/runner`, so the `setup-runner-home` init
|
|||||||
container copies the baked toolcache from `/opt/runner-toolcache/Ruby` into
|
container copies the baked toolcache from `/opt/runner-toolcache/Ruby` into
|
||||||
`/home/runner/_tool/Ruby` before the runner container starts.
|
`/home/runner/_tool/Ruby` before the runner container starts.
|
||||||
|
|
||||||
|
The IAmWorkin step-ca root CA is also baked into the system trust store
|
||||||
|
(`/usr/local/share/ca-certificates/iamworkin-step-ca-root.crt`, registered by
|
||||||
|
`update-ca-certificates`). Without it, .NET HttpClient calls from CI tests
|
||||||
|
against `*.iamworkin.lan` (e.g. `https://selenium.iamworkin.lan/session`)
|
||||||
|
fail with `PartialChain`. To refresh the bundled cert when the root rotates,
|
||||||
|
re-extract from the cluster and overwrite `step-ca-root.crt`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kubectl get secret -n cert-manager step-ca-root \
|
||||||
|
-o jsonpath='{.data.ca\.crt}' | base64 -d > step-ca-root.crt
|
||||||
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd apps/github-runner
|
cd apps/github-runner
|
||||||
podman build -t localhost/fc-github-runner:v20260520-ruby3.3.11 .
|
podman build -t localhost/fc-github-runner:v20260525-ruby3.3.11-stepca .
|
||||||
podman run --rm localhost/fc-github-runner:v20260520-ruby3.3.11 ruby -v
|
podman run --rm localhost/fc-github-runner:v20260525-ruby3.3.11-stepca ruby -v
|
||||||
podman run --rm localhost/fc-github-runner:v20260520-ruby3.3.11 \
|
podman run --rm localhost/fc-github-runner:v20260525-ruby3.3.11-stepca \
|
||||||
test -f /opt/runner-toolcache/Ruby/3.3/x64.complete
|
test -f /opt/runner-toolcache/Ruby/3.3/x64.complete
|
||||||
podman save localhost/fc-github-runner:v20260520-ruby3.3.11 \
|
podman save localhost/fc-github-runner:v20260525-ruby3.3.11-stepca \
|
||||||
-o fc-github-runner-v20260520-ruby3.3.11.tar
|
-o fc-github-runner-v20260525-ruby3.3.11-stepca.tar
|
||||||
```
|
```
|
||||||
|
|
||||||
Import the saved image on every schedulable RKE2 node before ArgoCD rolls the
|
Import the saved image on every schedulable RKE2 node before ArgoCD rolls the
|
||||||
@@ -55,9 +67,9 @@ Deployments:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
for node in rke2-server rke2-agent1 rke2-agent2; do
|
for node in rke2-server rke2-agent1 rke2-agent2; do
|
||||||
scp fc-github-runner-v20260520-ruby3.3.11.tar "$node:/tmp/"
|
scp fc-github-runner-v20260525-ruby3.3.11-stepca.tar "$node:/tmp/"
|
||||||
ssh "$node" 'sudo ctr -a /run/k3s/containerd/containerd.sock -n k8s.io images rm localhost/fc-github-runner:v20260520-ruby3.3.11 || true'
|
ssh "$node" 'sudo ctr -a /run/k3s/containerd/containerd.sock -n k8s.io images rm localhost/fc-github-runner:v20260525-ruby3.3.11-stepca || true'
|
||||||
ssh "$node" 'sudo ctr -a /run/k3s/containerd/containerd.sock -n k8s.io images import /tmp/fc-github-runner-v20260520-ruby3.3.11.tar'
|
ssh "$node" 'sudo ctr -a /run/k3s/containerd/containerd.sock -n k8s.io images import /tmp/fc-github-runner-v20260525-ruby3.3.11-stepca.tar'
|
||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
# NUGET_PACKAGES, XDG_CACHE_HOME, and RUNNER_TOOL_CACHE are all pointed at
|
# NUGET_PACKAGES, XDG_CACHE_HOME, and RUNNER_TOOL_CACHE are all pointed at
|
||||||
# writable mounted paths under /home/runner so actions/setup-dotnet does not
|
# writable mounted paths under /home/runner so actions/setup-dotnet does not
|
||||||
# attempt to install into /usr/share/dotnet.
|
# attempt to install into /usr/share/dotnet.
|
||||||
# Ruby 3.3.11 is baked into localhost/fc-github-runner:v20260520-ruby3.3.11
|
# Ruby 3.3.11 is baked into localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
# under /opt/runner-toolcache; setup-runner-home copies it into
|
# under /opt/runner-toolcache; setup-runner-home copies it into
|
||||||
# /home/runner/_tool because the runner-home emptyDir masks image content
|
# /home/runner/_tool because the runner-home emptyDir masks image content
|
||||||
# under /home/runner at runtime.
|
# under /home/runner at runtime.
|
||||||
@@ -157,7 +157,7 @@ spec:
|
|||||||
# honors the deeper mount.
|
# honors the deeper mount.
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -178,7 +178,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
# GitHub org/repo targeting.
|
# GitHub org/repo targeting.
|
||||||
@@ -334,7 +334,7 @@ spec:
|
|||||||
# rather than re-applied per repo as flipped lanes land.
|
# rather than re-applied per repo as flipped lanes land.
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -355,7 +355,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -472,7 +472,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -493,7 +493,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -604,7 +604,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -625,7 +625,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -736,7 +736,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -757,7 +757,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -868,7 +868,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -889,7 +889,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -1003,7 +1003,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -1024,7 +1024,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -1135,7 +1135,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -1156,7 +1156,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -1267,7 +1267,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -1288,7 +1288,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -1399,7 +1399,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -1420,7 +1420,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -1533,7 +1533,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -1554,7 +1554,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -1667,7 +1667,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -1688,7 +1688,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -1802,7 +1802,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -1823,7 +1823,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -1936,7 +1936,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -1957,7 +1957,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -2070,7 +2070,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -2091,7 +2091,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -2204,7 +2204,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -2225,7 +2225,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -2337,7 +2337,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -2358,7 +2358,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -2471,7 +2471,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -2492,7 +2492,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -2604,7 +2604,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -2625,7 +2625,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -2737,7 +2737,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -2758,7 +2758,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -2870,7 +2870,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -2891,7 +2891,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -3003,7 +3003,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -3024,7 +3024,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -3136,7 +3136,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -3157,7 +3157,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -3270,7 +3270,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -3291,7 +3291,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -3404,7 +3404,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -3425,7 +3425,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -3538,7 +3538,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -3559,7 +3559,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -3672,7 +3672,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -3693,7 +3693,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -3806,7 +3806,7 @@ spec:
|
|||||||
fsGroup: 1001
|
fsGroup: 1001
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: setup-runner-home
|
- name: setup-runner-home
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
@@ -3827,7 +3827,7 @@ spec:
|
|||||||
mountPath: /home/runner
|
mountPath: /home/runner
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: localhost/fc-github-runner:v20260520-ruby3.3.11
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
imagePullPolicy: Never
|
imagePullPolicy: Never
|
||||||
env:
|
env:
|
||||||
- name: REPO_URL
|
- name: REPO_URL
|
||||||
@@ -3897,9 +3897,277 @@ spec:
|
|||||||
- name: tmp
|
- name: tmp
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
|
---
|
||||||
|
# Runner for FlowerCore.PiManager. Two replicas use per-pod emptyDir caches, so
|
||||||
|
# backlog can drain without sharing a ReadWriteOnce PVC. Added 2026-05-25 to
|
||||||
|
# close the runner-fleet gap that left run 26417714843 queued for 5h.
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: github-runner-pimanager
|
||||||
|
namespace: github-runner
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: github-runner-pimanager
|
||||||
|
app.kubernetes.io/component: runner
|
||||||
|
app.kubernetes.io/part-of: flowercore
|
||||||
|
app.kubernetes.io/managed-by: argocd
|
||||||
|
flowercore.io/created-by: argocd
|
||||||
|
flowercore.io/runner-repo: pimanager
|
||||||
|
flowercore.io/github-repo: FlowerCore.PiManager
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: github-runner-pimanager
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: github-runner-pimanager
|
||||||
|
app.kubernetes.io/component: runner
|
||||||
|
app.kubernetes.io/part-of: flowercore
|
||||||
|
flowercore.io/created-by: argocd
|
||||||
|
flowercore.io/runner-repo: pimanager
|
||||||
|
flowercore.io/github-repo: FlowerCore.PiManager
|
||||||
|
spec:
|
||||||
|
serviceAccountName: github-runner
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1001
|
||||||
|
runAsGroup: 1001
|
||||||
|
fsGroup: 1001
|
||||||
|
initContainers:
|
||||||
|
- name: setup-runner-home
|
||||||
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
|
imagePullPolicy: Never
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
set -e
|
||||||
|
mkdir -p /home/runner/.dotnet /home/runner/.nuget/packages /home/runner/.nuget/NuGet /home/runner/.cache /home/runner/_tool
|
||||||
|
if [ -d /opt/runner-toolcache/Ruby ] && [ ! -d /home/runner/_tool/Ruby ]; then
|
||||||
|
cp -a /opt/runner-toolcache/Ruby /home/runner/_tool/
|
||||||
|
fi
|
||||||
|
chown -R 1001:1001 /home/runner/.dotnet /home/runner/.nuget /home/runner/.cache /home/runner/_tool
|
||||||
|
chmod -R 755 /home/runner/.dotnet /home/runner/.nuget /home/runner/.cache /home/runner/_tool
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
runAsNonRoot: false
|
||||||
|
volumeMounts:
|
||||||
|
- name: runner-home
|
||||||
|
mountPath: /home/runner
|
||||||
|
containers:
|
||||||
|
- name: runner
|
||||||
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
|
imagePullPolicy: Never
|
||||||
|
env:
|
||||||
|
- name: REPO_URL
|
||||||
|
value: "https://github.com/astoltz/FlowerCore.PiManager"
|
||||||
|
- name: RUNNER_NAME_PREFIX
|
||||||
|
value: "rke2-linux-pimanager"
|
||||||
|
- name: RUNNER_WORKDIR
|
||||||
|
value: "/tmp/runner/work"
|
||||||
|
- name: EPHEMERAL
|
||||||
|
value: "true"
|
||||||
|
- name: LABELS
|
||||||
|
value: "self-hosted,linux,fc-build-linux"
|
||||||
|
- name: HOME
|
||||||
|
value: "/home/runner"
|
||||||
|
- name: DOTNET_INSTALL_DIR
|
||||||
|
value: "/home/runner/.dotnet"
|
||||||
|
- name: DOTNET_CLI_TELEMETRY_OPTOUT
|
||||||
|
value: "1"
|
||||||
|
- name: DOTNET_NOLOGO
|
||||||
|
value: "1"
|
||||||
|
- name: DOTNET_GENERATE_ASPNET_CERTIFICATE
|
||||||
|
value: "false"
|
||||||
|
- name: DOTNET_CLI_HOME
|
||||||
|
value: "/home/runner"
|
||||||
|
- name: NUGET_PACKAGES
|
||||||
|
value: "/home/runner/.nuget/packages"
|
||||||
|
- name: XDG_CACHE_HOME
|
||||||
|
value: "/home/runner/.cache"
|
||||||
|
- name: RUNNER_TOOL_CACHE
|
||||||
|
value: "/home/runner/_tool"
|
||||||
|
- name: ACCESS_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: github-runner-token
|
||||||
|
key: credential
|
||||||
|
- name: RUN_AS_ROOT
|
||||||
|
value: "false"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "1Gi"
|
||||||
|
limits:
|
||||||
|
cpu: "2000m"
|
||||||
|
memory: "4Gi"
|
||||||
|
volumeMounts:
|
||||||
|
- name: runner-home
|
||||||
|
mountPath: /home/runner
|
||||||
|
- name: nuget-cache
|
||||||
|
mountPath: /home/runner/.nuget/packages
|
||||||
|
- name: tmp
|
||||||
|
mountPath: /tmp
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- "pgrep -f Runner.Listener > /dev/null"
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 30
|
||||||
|
failureThreshold: 3
|
||||||
|
volumes:
|
||||||
|
- name: runner-home
|
||||||
|
emptyDir: {}
|
||||||
|
- name: nuget-cache
|
||||||
|
emptyDir:
|
||||||
|
sizeLimit: 2Gi
|
||||||
|
- name: tmp
|
||||||
|
emptyDir: {}
|
||||||
|
restartPolicy: Always
|
||||||
|
---
|
||||||
|
# Runner for FlowerCore.Updater. Two replicas use per-pod emptyDir caches, so
|
||||||
|
# backlog can drain without sharing a ReadWriteOnce PVC. Added 2026-05-26 to
|
||||||
|
# close the runner-fleet gap that left the repo with only the offline
|
||||||
|
# windows-sandbox runner and no Linux PR-CI capacity for future workflows.
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: github-runner-updater
|
||||||
|
namespace: github-runner
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: github-runner-updater
|
||||||
|
app.kubernetes.io/component: runner
|
||||||
|
app.kubernetes.io/part-of: flowercore
|
||||||
|
app.kubernetes.io/managed-by: argocd
|
||||||
|
flowercore.io/created-by: argocd
|
||||||
|
flowercore.io/runner-repo: updater
|
||||||
|
flowercore.io/github-repo: FlowerCore.Updater
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: github-runner-updater
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: github-runner-updater
|
||||||
|
app.kubernetes.io/component: runner
|
||||||
|
app.kubernetes.io/part-of: flowercore
|
||||||
|
flowercore.io/created-by: argocd
|
||||||
|
flowercore.io/runner-repo: updater
|
||||||
|
flowercore.io/github-repo: FlowerCore.Updater
|
||||||
|
spec:
|
||||||
|
serviceAccountName: github-runner
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1001
|
||||||
|
runAsGroup: 1001
|
||||||
|
fsGroup: 1001
|
||||||
|
initContainers:
|
||||||
|
- name: setup-runner-home
|
||||||
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
|
imagePullPolicy: Never
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
set -e
|
||||||
|
mkdir -p /home/runner/.dotnet /home/runner/.nuget/packages /home/runner/.nuget/NuGet /home/runner/.cache /home/runner/_tool
|
||||||
|
if [ -d /opt/runner-toolcache/Ruby ] && [ ! -d /home/runner/_tool/Ruby ]; then
|
||||||
|
cp -a /opt/runner-toolcache/Ruby /home/runner/_tool/
|
||||||
|
fi
|
||||||
|
chown -R 1001:1001 /home/runner/.dotnet /home/runner/.nuget /home/runner/.cache /home/runner/_tool
|
||||||
|
chmod -R 755 /home/runner/.dotnet /home/runner/.nuget /home/runner/.cache /home/runner/_tool
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
|
runAsNonRoot: false
|
||||||
|
volumeMounts:
|
||||||
|
- name: runner-home
|
||||||
|
mountPath: /home/runner
|
||||||
|
containers:
|
||||||
|
- name: runner
|
||||||
|
image: localhost/fc-github-runner:v20260525-ruby3.3.11-stepca
|
||||||
|
imagePullPolicy: Never
|
||||||
|
env:
|
||||||
|
- name: REPO_URL
|
||||||
|
value: "https://github.com/astoltz/FlowerCore.Updater"
|
||||||
|
- name: RUNNER_NAME_PREFIX
|
||||||
|
value: "rke2-linux-updater"
|
||||||
|
- name: RUNNER_WORKDIR
|
||||||
|
value: "/tmp/runner/work"
|
||||||
|
- name: EPHEMERAL
|
||||||
|
value: "true"
|
||||||
|
- name: LABELS
|
||||||
|
value: "self-hosted,linux,fc-build-linux"
|
||||||
|
- name: HOME
|
||||||
|
value: "/home/runner"
|
||||||
|
- name: DOTNET_INSTALL_DIR
|
||||||
|
value: "/home/runner/.dotnet"
|
||||||
|
- name: DOTNET_CLI_TELEMETRY_OPTOUT
|
||||||
|
value: "1"
|
||||||
|
- name: DOTNET_NOLOGO
|
||||||
|
value: "1"
|
||||||
|
- name: DOTNET_GENERATE_ASPNET_CERTIFICATE
|
||||||
|
value: "false"
|
||||||
|
- name: DOTNET_CLI_HOME
|
||||||
|
value: "/home/runner"
|
||||||
|
- name: NUGET_PACKAGES
|
||||||
|
value: "/home/runner/.nuget/packages"
|
||||||
|
- name: XDG_CACHE_HOME
|
||||||
|
value: "/home/runner/.cache"
|
||||||
|
- name: RUNNER_TOOL_CACHE
|
||||||
|
value: "/home/runner/_tool"
|
||||||
|
- name: ACCESS_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: github-runner-token
|
||||||
|
key: credential
|
||||||
|
- name: RUN_AS_ROOT
|
||||||
|
value: "false"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "500m"
|
||||||
|
memory: "1Gi"
|
||||||
|
limits:
|
||||||
|
cpu: "2000m"
|
||||||
|
memory: "4Gi"
|
||||||
|
volumeMounts:
|
||||||
|
- name: runner-home
|
||||||
|
mountPath: /home/runner
|
||||||
|
- name: nuget-cache
|
||||||
|
mountPath: /home/runner/.nuget/packages
|
||||||
|
- name: tmp
|
||||||
|
mountPath: /tmp
|
||||||
|
livenessProbe:
|
||||||
|
exec:
|
||||||
|
command:
|
||||||
|
- /bin/sh
|
||||||
|
- -c
|
||||||
|
- "pgrep -f Runner.Listener > /dev/null"
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
periodSeconds: 30
|
||||||
|
failureThreshold: 3
|
||||||
|
volumes:
|
||||||
|
- name: runner-home
|
||||||
|
emptyDir: {}
|
||||||
|
- name: nuget-cache
|
||||||
|
emptyDir:
|
||||||
|
sizeLimit: 2Gi
|
||||||
|
- name: tmp
|
||||||
|
emptyDir: {}
|
||||||
|
restartPolicy: Always
|
||||||
|
|
||||||
# Long-tail runner pattern:
|
# Long-tail runner pattern:
|
||||||
#
|
#
|
||||||
# Sprint 32 added the final 16 long-tail repo-scoped Deployments above. Keep
|
# Sprint 32 added the final 16 long-tail repo-scoped Deployments above. Keep
|
||||||
# Common as the only PVC-backed runner at replicas: 1. Any future multi-replica
|
# Common as the only PVC-backed runner at replicas: 1. Any future multi-replica
|
||||||
# runner must use per-pod emptyDir caches, not a shared ReadWriteOnce PVC.
|
# runner must use per-pod emptyDir caches, not a shared ReadWriteOnce PVC.
|
||||||
|
# 2026-05-25: PiManager added (was missed in the Sprint 32 long-tail sweep).
|
||||||
|
|||||||
12
apps/github-runner/step-ca-root.crt
Normal file
12
apps/github-runner/step-ca-root.crt
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIBxDCCAWqgAwIBAgIRAPY357G6ow6zMAL5+4bS2kkwCgYIKoZIzj0EAwIwQDEa
|
||||||
|
MBgGA1UEChMRSUFtV29ya2luIEFDTUUgQ0ExIjAgBgNVBAMTGUlBbVdvcmtpbiBB
|
||||||
|
Q01FIENBIFJvb3QgQ0EwHhcNMjYwMzA4MTgwNzExWhcNMzYwMzA1MTgwNzExWjBA
|
||||||
|
MRowGAYDVQQKExFJQW1Xb3JraW4gQUNNRSBDQTEiMCAGA1UEAxMZSUFtV29ya2lu
|
||||||
|
IEFDTUUgQ0EgUm9vdCBDQTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJ2n04X1
|
||||||
|
JZo5Zdq/i1Idv8+fqwZyAzBh7whbqj0SWsJL8UWRabCMqYCs7+dXO0xRSzqkwFDL
|
||||||
|
x+vooOai8RgRNhajRTBDMA4GA1UdDwEB/wQEAwIBBjASBgNVHRMBAf8ECDAGAQH/
|
||||||
|
AgEBMB0GA1UdDgQWBBRnuPPQR6iM/H6vOluiU3Sygayz8jAKBggqhkjOPQQDAgNI
|
||||||
|
ADBFAiEArQK9dYPGmAZsdYnjziuFVVE5NKZUcceYvGfGC+tLXUsCIAudF2zJrCRq
|
||||||
|
3mK50ZZET/fwTkJwiEF4824mjP8p1CKM
|
||||||
|
-----END CERTIFICATE-----
|
||||||
@@ -24,7 +24,16 @@
|
|||||||
# (10.0.57.16:5200), public internet 80/443 (excluding RFC1918), and
|
# (10.0.57.16:5200), public internet 80/443 (excluding RFC1918), and
|
||||||
# fc-signage:5190 for the signage AAT lane.
|
# fc-signage:5190 for the signage AAT lane.
|
||||||
# - Ingress: Traefik (4444 + 8089 ACME-solver-style), intra-pod,
|
# - Ingress: Traefik (4444 + 8089 ACME-solver-style), intra-pod,
|
||||||
# telephony / gitea / fc-system / fc-signage namespaces on 4444.
|
# telephony / gitea / fc-system / fc-signage / github-runner namespaces
|
||||||
|
# on 4444.
|
||||||
|
#
|
||||||
|
# 2026-05-25: added github-runner ingress on 4444 so CI jobs running in
|
||||||
|
# self-hosted runner pods (e.g. FlowerCore.Print.Web `help-screenshots`)
|
||||||
|
# can reach the grid. Without this allow, the session POST to
|
||||||
|
# `selenium-hub.selenium.svc.cluster.local:4444` was DNAT'd to the hub
|
||||||
|
# pod IP and then dropped at the Calico ingress hook — Selenium UI showed
|
||||||
|
# 0/4 sessions while the .NET HTTP client timed out at 60s. Same family
|
||||||
|
# as `feedback_netpol_dnat_backend_port`, wrong-source-namespace flavor.
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: NetworkPolicy
|
kind: NetworkPolicy
|
||||||
metadata:
|
metadata:
|
||||||
@@ -203,6 +212,13 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- port: 4444
|
- port: 4444
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
- from:
|
||||||
|
- namespaceSelector:
|
||||||
|
matchLabels:
|
||||||
|
kubernetes.io/metadata.name: github-runner
|
||||||
|
ports:
|
||||||
|
- port: 4444
|
||||||
|
protocol: TCP
|
||||||
podSelector: {}
|
podSelector: {}
|
||||||
policyTypes:
|
policyTypes:
|
||||||
- Ingress
|
- Ingress
|
||||||
|
|||||||
@@ -132,13 +132,18 @@ spec:
|
|||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
|
# Hub baseline working set ~766Mi on 2026-05-25 (75% of prior 1Gi
|
||||||
|
# limit). Bump to 1.5Gi / 1Gi to keep ~50% headroom; matches the
|
||||||
|
# stampede-buffer pattern documented for multus
|
||||||
|
# (feedback_k8s_cni_multus_sizing). CPU left alone — observed 54m
|
||||||
|
# against a 500m limit, no contention.
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 500m
|
cpu: 500m
|
||||||
memory: 1Gi
|
memory: 1536Mi
|
||||||
requests:
|
requests:
|
||||||
cpu: 250m
|
cpu: 250m
|
||||||
memory: 512Mi
|
memory: 1Gi
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
@@ -198,13 +203,18 @@ spec:
|
|||||||
port: 5555
|
port: 5555
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
|
# Chromium-based browser node. Bumped from 1Gi -> 2Gi (req 512Mi
|
||||||
|
# -> 1Gi) on 2026-05-25 — Edge had 51 OOMKills in 5d on the
|
||||||
|
# original 1Gi cap (~1 OOM every 2.4h), and Chrome at maxSessions=2
|
||||||
|
# was running 684Mi idle on the same cap. Matches the Firefox node's
|
||||||
|
# tested-stable 2Gi limit. CPU unchanged.
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: '1'
|
cpu: '1'
|
||||||
memory: 1Gi
|
memory: 2Gi
|
||||||
requests:
|
requests:
|
||||||
cpu: 500m
|
cpu: 500m
|
||||||
memory: 512Mi
|
memory: 1Gi
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /dev/shm
|
- mountPath: /dev/shm
|
||||||
name: dshm
|
name: dshm
|
||||||
@@ -378,13 +388,18 @@ spec:
|
|||||||
port: 5555
|
port: 5555
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
|
# Chromium-based browser node. Bumped from 1Gi -> 2Gi (req 512Mi
|
||||||
|
# -> 1Gi) on 2026-05-25 — Edge had 51 OOMKills in 5d on the
|
||||||
|
# original 1Gi cap (~1 OOM every 2.4h), and Chrome at maxSessions=2
|
||||||
|
# was running 684Mi idle on the same cap. Matches the Firefox node's
|
||||||
|
# tested-stable 2Gi limit. CPU unchanged.
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: '1'
|
cpu: '1'
|
||||||
memory: 1Gi
|
memory: 2Gi
|
||||||
requests:
|
requests:
|
||||||
cpu: 500m
|
cpu: 500m
|
||||||
memory: 512Mi
|
memory: 1Gi
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /dev/shm
|
- mountPath: /dev/shm
|
||||||
name: dshm
|
name: dshm
|
||||||
|
|||||||
@@ -67,6 +67,7 @@ public sealed class FleetManifestLintTests
|
|||||||
["github-runner-chat"] = "https://github.com/astoltz/FlowerCore.Chat",
|
["github-runner-chat"] = "https://github.com/astoltz/FlowerCore.Chat",
|
||||||
["github-runner-mysql"] = "https://github.com/astoltz/FlowerCore.MySQL",
|
["github-runner-mysql"] = "https://github.com/astoltz/FlowerCore.MySQL",
|
||||||
["github-runner-kiosk-linux"] = "https://github.com/astoltz/FlowerCore.Kiosk.Linux",
|
["github-runner-kiosk-linux"] = "https://github.com/astoltz/FlowerCore.Kiosk.Linux",
|
||||||
|
["github-runner-updater"] = "https://github.com/astoltz/FlowerCore.Updater",
|
||||||
};
|
};
|
||||||
|
|
||||||
private static readonly HashSet<string> ScaledLinuxRunnerDeployments = new(StringComparer.Ordinal)
|
private static readonly HashSet<string> ScaledLinuxRunnerDeployments = new(StringComparer.Ordinal)
|
||||||
@@ -80,6 +81,7 @@ public sealed class FleetManifestLintTests
|
|||||||
"github-runner-chat",
|
"github-runner-chat",
|
||||||
"github-runner-mysql",
|
"github-runner-mysql",
|
||||||
"github-runner-kiosk-linux",
|
"github-runner-kiosk-linux",
|
||||||
|
"github-runner-updater",
|
||||||
};
|
};
|
||||||
|
|
||||||
private static readonly IReadOnlyDictionary<string, string> WritableRunnerEnv = new Dictionary<string, string>(StringComparer.Ordinal)
|
private static readonly IReadOnlyDictionary<string, string> WritableRunnerEnv = new Dictionary<string, string>(StringComparer.Ordinal)
|
||||||
|
|||||||
Reference in New Issue
Block a user