scheduling: target hdd storage node exclusions

This commit is contained in:
jenkins 2026-05-22 14:02:17 -03:00
parent 155d7d020e
commit 17dc9a6e52
10 changed files with 29 additions and 20 deletions

View File

@ -24,7 +24,7 @@ spec:
- bash
- -ceu
- |
for node in titan-08 titan-12 titan-13 titan-14 titan-15 titan-17 titan-19; do
for node in titan-13 titan-15 titan-17 titan-19; do
if kubectl get node "${node}" >/dev/null 2>&1; then
kubectl label node "${node}" atlas.bstein.dev/spillover=true --overwrite=true
kubectl taint node "${node}" longhorn=true:PreferNoSchedule --overwrite=true

View File

@ -46,8 +46,9 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: longhorn-host
operator: DoesNotExist
- key: kubernetes.io/hostname
operator: NotIn
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:
@ -60,7 +61,7 @@ spec:
matchExpressions:
- key: kubernetes.io/hostname
operator: NotIn
values: ["titan-13", "titan-14", "titan-15", "titan-17", "titan-18", "titan-19"]
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
- weight: 80
preference:
matchExpressions:

View File

@ -23,8 +23,9 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: longhorn-host
operator: DoesNotExist
- key: kubernetes.io/hostname
operator: NotIn
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
imagePullSecrets:
- name: harbor-regcred
containers:

View File

@ -67,8 +67,9 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: longhorn-host
operator: DoesNotExist
- key: kubernetes.io/hostname
operator: NotIn
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:

View File

@ -53,8 +53,9 @@ spec:
- key: kubernetes.io/arch
operator: In
values: ["amd64","arm64"]
- key: longhorn-host
operator: DoesNotExist
- key: kubernetes.io/hostname
operator: NotIn
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:

View File

@ -56,8 +56,9 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: longhorn-host
operator: DoesNotExist
- key: kubernetes.io/hostname
operator: NotIn
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:

View File

@ -23,8 +23,9 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: longhorn-host
operator: DoesNotExist
- key: kubernetes.io/hostname
operator: NotIn
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
serviceAccountName: maintenance-vault-sync
containers:
- name: sync

View File

@ -88,8 +88,9 @@ spec:
- key: hardware
operator: In
values: ["rpi4", "rpi5"]
- key: longhorn-host
operator: DoesNotExist
- key: kubernetes.io/hostname
operator: NotIn
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
containers:
- name: outline
image: outlinewiki/outline:1.2.0

View File

@ -61,8 +61,9 @@ spec:
operator: DoesNotExist
- key: node-role.kubernetes.io/master
operator: DoesNotExist
- key: longhorn-host
operator: DoesNotExist
- key: kubernetes.io/hostname
operator: NotIn
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference:

View File

@ -49,8 +49,9 @@ spec:
operator: DoesNotExist
- key: node-role.kubernetes.io/master
operator: DoesNotExist
- key: longhorn-host
operator: DoesNotExist
- key: kubernetes.io/hostname
operator: NotIn
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
preference: