feat(forgejo): use node name for runner names
Some checks failed
Renovate / renovate (push) Failing after 2m2s
Some checks failed
Renovate / renovate (push) Failing after 2m2s
This commit is contained in:
parent
37de297901
commit
be982ab508
2 changed files with 14 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -40,7 +40,7 @@ spec:
|
|||
- name: RUNNER_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
fieldPath: spec.nodeName
|
||||
- name: RUNNER_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
|
|
Loading…
Reference in a new issue