keycloak: prefer rpi nodes, avoid titan-24

This commit is contained in:
Brad Stein 2025-12-06 01:36:33 -03:00
parent 141c05b08f
commit f4da27271e

View File

@ -16,6 +16,27 @@ spec:
labels:
app: keycloak
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 90
preference:
matchExpressions:
- key: hardware
operator: In
values: ["rpi5"]
- weight: 70
preference:
matchExpressions:
- key: hardware
operator: In
values: ["rpi4"]
- weight: 50
preference:
matchExpressions:
- key: kubernetes.io/hostname
operator: NotIn
values: ["titan-24"]
securityContext:
runAsUser: 1000
runAsGroup: 0