From da7ee453660b7b7bc4cc8776e7ee0b76cdd3fc6e Mon Sep 17 00:00:00 2001 From: jenkins Date: Sun, 10 May 2026 04:00:57 -0300 Subject: [PATCH] postgres: avoid unstable nodes --- infrastructure/postgres/statefulset.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/infrastructure/postgres/statefulset.yaml b/infrastructure/postgres/statefulset.yaml index 2c792486..658aac01 100644 --- a/infrastructure/postgres/statefulset.yaml +++ b/infrastructure/postgres/statefulset.yaml @@ -25,6 +25,7 @@ spec: serviceAccountName: postgres-vault nodeSelector: node-role.kubernetes.io/worker: "true" + hardware: rpi5 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: @@ -35,7 +36,17 @@ spec: values: ["true"] - key: hardware operator: In - values: ["rpi4", "rpi5"] + values: ["rpi5"] + - key: kubernetes.io/hostname + operator: NotIn + values: ["titan-06"] + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + preference: + matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: ["titan-05", "titan-07", "titan-08", "titan-11"] containers: - name: postgres image: postgres:15