infra: bias gitea/monerod placement, bump synapse ensure job

This commit is contained in:
Brad Stein 2026-02-07 10:48:48 -03:00
parent 4edc888246
commit c9a9c801ec
3 changed files with 17 additions and 5 deletions

View File

@ -1,12 +1,12 @@
# services/comms/oneoffs/synapse-admin-ensure-job.yaml # services/comms/oneoffs/synapse-admin-ensure-job.yaml
# One-off job for comms/synapse-admin-ensure-14. # One-off job for comms/synapse-admin-ensure-15.
# Purpose: synapse admin ensure 14 (see container args/env in this file). # Purpose: synapse admin ensure 15 (see container args/env in this file).
# Run by setting spec.suspend to false, reconcile, then set it back to true. # Run by setting spec.suspend to false, reconcile, then set it back to true.
# Safe to delete the finished Job/pod; it should not run continuously. # Safe to delete the finished Job/pod; it should not run continuously.
apiVersion: batch/v1 apiVersion: batch/v1
kind: Job kind: Job
metadata: metadata:
name: synapse-admin-ensure-14 name: synapse-admin-ensure-15
namespace: comms namespace: comms
spec: spec:
suspend: false suspend: false

View File

@ -29,12 +29,18 @@ spec:
operator: In operator: In
values: ["rpi4","rpi5"] values: ["rpi4","rpi5"]
preferredDuringSchedulingIgnoredDuringExecution: preferredDuringSchedulingIgnoredDuringExecution:
- weight: 50 - weight: 80
preference: preference:
matchExpressions: matchExpressions:
- key: hardware - key: hardware
operator: In operator: In
values: ["rpi4"] values: ["rpi5"]
- weight: 60
preference:
matchExpressions:
- key: kubernetes.io/hostname
operator: NotIn
values: ["titan-12","titan-13","titan-15","titan-17","titan-19"]
containers: containers:
- name: monerod - name: monerod
image: registry.bstein.dev/crypto/monerod:0.18.4.1 image: registry.bstein.dev/crypto/monerod:0.18.4.1

View File

@ -127,6 +127,12 @@ spec:
operator: NotIn operator: NotIn
values: ["true"] values: ["true"]
preferredDuringSchedulingIgnoredDuringExecution: preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
matchExpressions:
- key: kubernetes.io/hostname
operator: NotIn
values: ["titan-13","titan-15","titan-17","titan-19"]
- weight: 50 - weight: 50
preference: preference:
matchExpressions: matchExpressions: