From 5e0c5b200cad1a4d035e6acf678b2721c4ddb869 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Fri, 6 Feb 2026 19:33:55 -0300 Subject: [PATCH] gitea: avoid longhorn nodes --- infrastructure/core/kustomization.yaml | 1 + infrastructure/core/longhorn-node-taints.yaml | 40 +++++++++++++++++++ services/gitea/deployment.yaml | 3 ++ 3 files changed, 44 insertions(+) create mode 100644 infrastructure/core/longhorn-node-taints.yaml diff --git a/infrastructure/core/kustomization.yaml b/infrastructure/core/kustomization.yaml index 257e1f0..a6ce04f 100644 --- a/infrastructure/core/kustomization.yaml +++ b/infrastructure/core/kustomization.yaml @@ -6,6 +6,7 @@ resources: - ../modules/profiles/atlas-ha - coredns-custom.yaml - coredns-deployment.yaml + - longhorn-node-taints.yaml - ntp-sync-daemonset.yaml - ../sources/cert-manager/letsencrypt.yaml - ../sources/cert-manager/letsencrypt-prod.yaml diff --git a/infrastructure/core/longhorn-node-taints.yaml b/infrastructure/core/longhorn-node-taints.yaml new file mode 100644 index 0000000..df6ee54 --- /dev/null +++ b/infrastructure/core/longhorn-node-taints.yaml @@ -0,0 +1,40 @@ +# infrastructure/core/longhorn-node-taints.yaml +apiVersion: v1 +kind: Node +metadata: + name: titan-13 +spec: + taints: + - key: longhorn + value: "true" + effect: PreferNoSchedule +--- +apiVersion: v1 +kind: Node +metadata: + name: titan-15 +spec: + taints: + - key: longhorn + value: "true" + effect: PreferNoSchedule +--- +apiVersion: v1 +kind: Node +metadata: + name: titan-17 +spec: + taints: + - key: longhorn + value: "true" + effect: PreferNoSchedule +--- +apiVersion: v1 +kind: Node +metadata: + name: titan-19 +spec: + taints: + - key: longhorn + value: "true" + effect: PreferNoSchedule diff --git a/services/gitea/deployment.yaml b/services/gitea/deployment.yaml index da188c3..febb799 100644 --- a/services/gitea/deployment.yaml +++ b/services/gitea/deployment.yaml @@ -123,6 +123,9 @@ spec: - key: hardware operator: In values: ["rpi4","rpi5"] + - key: longhorn + operator: NotIn + values: ["true"] preferredDuringSchedulingIgnoredDuringExecution: - weight: 50 preference: