From b87dd598890d1bf3cd450ece039b997fa40698f7 Mon Sep 17 00:00:00 2001 From: Roman Mohr Date: Mon, 17 Jan 2022 11:00:42 +0100 Subject: [PATCH] Add a fixed toleration to the HANA VM The toleration allows admins to isolate nodes specifically for HANA. HANA VMs can be distributed based on the node labels, therefore the toleration can be a fixed toleration, just to keep out all other workloads. Signed-off-by: Roman Mohr --- templates/rhel8.saphana.tpl.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/rhel8.saphana.tpl.yaml b/templates/rhel8.saphana.tpl.yaml index 849406c5..e7f92eeb 100644 --- a/templates/rhel8.saphana.tpl.yaml +++ b/templates/rhel8.saphana.tpl.yaml @@ -151,6 +151,11 @@ objects: name: sriov-net3 nodeSelector: kubevirt.io/workload: ${WORKLOAD_NODE_LABEL_VALUE} + tolerations: + - key: kubevirt.io/workload + operator: Equal + value: hana + effect: NoSchedule parameters: - description: Name for the new VM displayName: Name