feat(forgejo): use node name for runner names
Some checks failed
Renovate / renovate (push) Failing after 2m2s

This commit is contained in:
Peter 2024-05-10 17:40:32 +02:00
parent 37de297901
commit be982ab508
Signed by: prskr
GPG key ID: F56BED6903BC5E37
2 changed files with 14 additions and 2 deletions

View file

@ -9,6 +9,8 @@ spec:
app.kubernetes.io/name: act-runner
app.kubernetes.io/instance: amd64
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
@ -37,7 +39,7 @@ spec:
- name: RUNNER_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
fieldPath: spec.nodeName
- name: RUNNER_SECRET
valueFrom:
secretKeyRef:
@ -103,6 +105,16 @@ spec:
fsGroup: 1000
nodeSelector:
kubernetes.io/arch: amd64
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: kubernetes.io/hostname
labelSelector:
matchExpressions:
- key: app.kubernetes.io/name
operator: In
values:
- act-runner
volumes:
- name: runner-data
emptyDir:

View file

@ -40,7 +40,7 @@ spec:
- name: RUNNER_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
fieldPath: spec.nodeName
- name: RUNNER_SECRET
valueFrom:
secretKeyRef: