cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit dde4a94a790a0cba583b730a90bffb13def64594
parent d05a00c3b659c773378b197cb7e2a576689ca0b7
Author: MTRNord <mtrnord1@gmail.com>
Date:   Wed, 14 May 2025 16:57:38 +0200

Limit where rook runs

Diffstat:
Minfrastructure/controllers/rook.yaml | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/infrastructure/controllers/rook.yaml b/infrastructure/controllers/rook.yaml @@ -91,6 +91,14 @@ spec: # as soon as you have more than one OSD per node. The topology spread constraints will # give us an even spread on K8s 1.18 or newer. placement: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: midnightthoughts.rook.ceph/allowed + operator: In + values: + - "true" topologySpreadConstraints: - maxSkew: 1 topologyKey: kubernetes.io/hostname @@ -102,6 +110,14 @@ spec: values: - rook-ceph-osd preparePlacement: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: midnightthoughts.rook.ceph/allowed + operator: In + values: + - "true" podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100