gitea: avoid longhorn nodes

This commit is contained in:
Brad Stein 2026-02-06 19:33:55 -03:00
parent 28278d6c67
commit 5e0c5b200c
3 changed files with 44 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -123,6 +123,9 @@ spec:
- key: hardware
operator: In
values: ["rpi4","rpi5"]
- key: longhorn
operator: NotIn
values: ["true"]
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 50
preference: