From 17dc9a6e521a198a923422a1a0600da34be9002b Mon Sep 17 00:00:00 2001 From: jenkins Date: Fri, 22 May 2026 14:02:17 -0300 Subject: [PATCH] scheduling: target hdd storage node exclusions --- infrastructure/core/node-prefer-noschedule-cronjob.yaml | 2 +- infrastructure/vault-injector/helmrelease.yaml | 7 ++++--- services/bstein-dev-home/frontend-deployment.yaml | 5 +++-- services/finance/firefly-deployment.yaml | 5 +++-- services/game-stream/oauth2-proxy-wolf.yaml | 5 +++-- services/health/wger-deployment.yaml | 5 +++-- services/maintenance/vault-sync-deployment.yaml | 5 +++-- services/outline/deployment.yaml | 5 +++-- services/quality/oauth2-proxy-sonarqube.yaml | 5 +++-- services/quality/sonarqube-deployment.yaml | 5 +++-- 10 files changed, 29 insertions(+), 20 deletions(-) diff --git a/infrastructure/core/node-prefer-noschedule-cronjob.yaml b/infrastructure/core/node-prefer-noschedule-cronjob.yaml index 4167f28c..dd4257df 100644 --- a/infrastructure/core/node-prefer-noschedule-cronjob.yaml +++ b/infrastructure/core/node-prefer-noschedule-cronjob.yaml @@ -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 diff --git a/infrastructure/vault-injector/helmrelease.yaml b/infrastructure/vault-injector/helmrelease.yaml index 70f5f0bb..d7852737 100644 --- a/infrastructure/vault-injector/helmrelease.yaml +++ b/infrastructure/vault-injector/helmrelease.yaml @@ -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: diff --git a/services/bstein-dev-home/frontend-deployment.yaml b/services/bstein-dev-home/frontend-deployment.yaml index c87ca83e..ee7b613f 100644 --- a/services/bstein-dev-home/frontend-deployment.yaml +++ b/services/bstein-dev-home/frontend-deployment.yaml @@ -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: diff --git a/services/finance/firefly-deployment.yaml b/services/finance/firefly-deployment.yaml index d55ed4ec..63bdd3ba 100644 --- a/services/finance/firefly-deployment.yaml +++ b/services/finance/firefly-deployment.yaml @@ -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: diff --git a/services/game-stream/oauth2-proxy-wolf.yaml b/services/game-stream/oauth2-proxy-wolf.yaml index 2cef1f1a..5d2f92f2 100644 --- a/services/game-stream/oauth2-proxy-wolf.yaml +++ b/services/game-stream/oauth2-proxy-wolf.yaml @@ -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: diff --git a/services/health/wger-deployment.yaml b/services/health/wger-deployment.yaml index 46d0484c..0fa6ce12 100644 --- a/services/health/wger-deployment.yaml +++ b/services/health/wger-deployment.yaml @@ -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: diff --git a/services/maintenance/vault-sync-deployment.yaml b/services/maintenance/vault-sync-deployment.yaml index d0c07552..0f70888f 100644 --- a/services/maintenance/vault-sync-deployment.yaml +++ b/services/maintenance/vault-sync-deployment.yaml @@ -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 diff --git a/services/outline/deployment.yaml b/services/outline/deployment.yaml index 0ba1c4a0..93798881 100644 --- a/services/outline/deployment.yaml +++ b/services/outline/deployment.yaml @@ -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 diff --git a/services/quality/oauth2-proxy-sonarqube.yaml b/services/quality/oauth2-proxy-sonarqube.yaml index 6e997d62..d780393d 100644 --- a/services/quality/oauth2-proxy-sonarqube.yaml +++ b/services/quality/oauth2-proxy-sonarqube.yaml @@ -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: diff --git a/services/quality/sonarqube-deployment.yaml b/services/quality/sonarqube-deployment.yaml index 27382ea2..c15c9f66 100644 --- a/services/quality/sonarqube-deployment.yaml +++ b/services/quality/sonarqube-deployment.yaml @@ -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: