scheduling: target hdd storage node exclusions
This commit is contained in:
parent
155d7d020e
commit
17dc9a6e52
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user