feat(forgejo): configure anti-affinity and node selector
All checks were successful
Renovate / renovate (push) Successful in 46s
All checks were successful
Renovate / renovate (push) Successful in 46s
This commit is contained in:
parent
be09a12730
commit
135eb0aec2
2 changed files with 16 additions and 10 deletions
|
@ -87,15 +87,18 @@ spec:
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/arch: amd64
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
podAntiAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
- topologyKey: kubernetes.io/hostname
|
||||||
- matchExpressions:
|
labelSelector:
|
||||||
- key: kubernetes.io/arch
|
matchExpressions:
|
||||||
|
- key: app.kubernetes.io/name
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- amd64
|
- act-runner
|
||||||
volumes:
|
volumes:
|
||||||
- name: runner-data
|
- name: runner-data
|
||||||
emptyDir:
|
emptyDir:
|
||||||
|
|
|
@ -88,15 +88,18 @@ spec:
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/arch: arm64
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
podAntiAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
- topologyKey: kubernetes.io/hostname
|
||||||
- matchExpressions:
|
labelSelector:
|
||||||
- key: kubernetes.io/arch
|
matchExpressions:
|
||||||
|
- key: app.kubernetes.io/name
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- arm64
|
- act-runner
|
||||||
volumes:
|
volumes:
|
||||||
- name: runner-data
|
- name: runner-data
|
||||||
emptyDir:
|
emptyDir:
|
||||||
|
|
Loading…
Reference in a new issue