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

View file

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