scheduling: target hdd storage node exclusions
This commit is contained in:
parent
155d7d020e
commit
17dc9a6e52
@ -24,7 +24,7 @@ spec:
|
|||||||
- bash
|
- bash
|
||||||
- -ceu
|
- -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
|
if kubectl get node "${node}" >/dev/null 2>&1; then
|
||||||
kubectl label node "${node}" atlas.bstein.dev/spillover=true --overwrite=true
|
kubectl label node "${node}" atlas.bstein.dev/spillover=true --overwrite=true
|
||||||
kubectl taint node "${node}" longhorn=true:PreferNoSchedule --overwrite=true
|
kubectl taint node "${node}" longhorn=true:PreferNoSchedule --overwrite=true
|
||||||
|
|||||||
@ -46,8 +46,9 @@ spec:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
- matchExpressions:
|
- matchExpressions:
|
||||||
- key: longhorn-host
|
- key: kubernetes.io/hostname
|
||||||
operator: DoesNotExist
|
operator: NotIn
|
||||||
|
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
- weight: 100
|
- weight: 100
|
||||||
preference:
|
preference:
|
||||||
@ -60,7 +61,7 @@ spec:
|
|||||||
matchExpressions:
|
matchExpressions:
|
||||||
- key: kubernetes.io/hostname
|
- key: kubernetes.io/hostname
|
||||||
operator: NotIn
|
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
|
- weight: 80
|
||||||
preference:
|
preference:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
|
|||||||
@ -23,8 +23,9 @@ spec:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
- matchExpressions:
|
- matchExpressions:
|
||||||
- key: longhorn-host
|
- key: kubernetes.io/hostname
|
||||||
operator: DoesNotExist
|
operator: NotIn
|
||||||
|
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: harbor-regcred
|
- name: harbor-regcred
|
||||||
containers:
|
containers:
|
||||||
|
|||||||
@ -67,8 +67,9 @@ spec:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
- matchExpressions:
|
- matchExpressions:
|
||||||
- key: longhorn-host
|
- key: kubernetes.io/hostname
|
||||||
operator: DoesNotExist
|
operator: NotIn
|
||||||
|
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
- weight: 100
|
- weight: 100
|
||||||
preference:
|
preference:
|
||||||
|
|||||||
@ -53,8 +53,9 @@ spec:
|
|||||||
- key: kubernetes.io/arch
|
- key: kubernetes.io/arch
|
||||||
operator: In
|
operator: In
|
||||||
values: ["amd64","arm64"]
|
values: ["amd64","arm64"]
|
||||||
- key: longhorn-host
|
- key: kubernetes.io/hostname
|
||||||
operator: DoesNotExist
|
operator: NotIn
|
||||||
|
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
- weight: 100
|
- weight: 100
|
||||||
preference:
|
preference:
|
||||||
|
|||||||
@ -56,8 +56,9 @@ spec:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
- matchExpressions:
|
- matchExpressions:
|
||||||
- key: longhorn-host
|
- key: kubernetes.io/hostname
|
||||||
operator: DoesNotExist
|
operator: NotIn
|
||||||
|
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
- weight: 100
|
- weight: 100
|
||||||
preference:
|
preference:
|
||||||
|
|||||||
@ -23,8 +23,9 @@ spec:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
- matchExpressions:
|
- matchExpressions:
|
||||||
- key: longhorn-host
|
- key: kubernetes.io/hostname
|
||||||
operator: DoesNotExist
|
operator: NotIn
|
||||||
|
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
|
||||||
serviceAccountName: maintenance-vault-sync
|
serviceAccountName: maintenance-vault-sync
|
||||||
containers:
|
containers:
|
||||||
- name: sync
|
- name: sync
|
||||||
|
|||||||
@ -88,8 +88,9 @@ spec:
|
|||||||
- key: hardware
|
- key: hardware
|
||||||
operator: In
|
operator: In
|
||||||
values: ["rpi4", "rpi5"]
|
values: ["rpi4", "rpi5"]
|
||||||
- key: longhorn-host
|
- key: kubernetes.io/hostname
|
||||||
operator: DoesNotExist
|
operator: NotIn
|
||||||
|
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
|
||||||
containers:
|
containers:
|
||||||
- name: outline
|
- name: outline
|
||||||
image: outlinewiki/outline:1.2.0
|
image: outlinewiki/outline:1.2.0
|
||||||
|
|||||||
@ -61,8 +61,9 @@ spec:
|
|||||||
operator: DoesNotExist
|
operator: DoesNotExist
|
||||||
- key: node-role.kubernetes.io/master
|
- key: node-role.kubernetes.io/master
|
||||||
operator: DoesNotExist
|
operator: DoesNotExist
|
||||||
- key: longhorn-host
|
- key: kubernetes.io/hostname
|
||||||
operator: DoesNotExist
|
operator: NotIn
|
||||||
|
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
- weight: 100
|
- weight: 100
|
||||||
preference:
|
preference:
|
||||||
|
|||||||
@ -49,8 +49,9 @@ spec:
|
|||||||
operator: DoesNotExist
|
operator: DoesNotExist
|
||||||
- key: node-role.kubernetes.io/master
|
- key: node-role.kubernetes.io/master
|
||||||
operator: DoesNotExist
|
operator: DoesNotExist
|
||||||
- key: longhorn-host
|
- key: kubernetes.io/hostname
|
||||||
operator: DoesNotExist
|
operator: NotIn
|
||||||
|
values: ["titan-13", "titan-15", "titan-17", "titan-19"]
|
||||||
preferredDuringSchedulingIgnoredDuringExecution:
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
- weight: 100
|
- weight: 100
|
||||||
preference:
|
preference:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user