From 8749d3a7ecdba3b3ec90a03684335354190f8052 Mon Sep 17 00:00:00 2001 From: Alexander Greene Date: Thu, 29 Sep 2022 12:35:23 -0700 Subject: [PATCH] Run collect-profile pod on management nodes Problem: The collect-profiles pod spec is missing the "target.workload.openshift.io/management:" annotation. As a result when the workload partitioning feature is enabled on SNO, this pod resources will not get mutated and pinned to the reserved cpuset. Solution: Add the target.workload.openshift.io/management:" annotation to the collect-profiles pod. Signed-off-by: Alexander Greene --- manifests/0000_50_olm_07-collect-profiles.cronjob.yaml | 3 +++ scripts/generate_crds_manifests.sh | 3 +++ 2 files changed, 6 insertions(+) diff --git a/manifests/0000_50_olm_07-collect-profiles.cronjob.yaml b/manifests/0000_50_olm_07-collect-profiles.cronjob.yaml index 7e297c6b6e..e368167802 100644 --- a/manifests/0000_50_olm_07-collect-profiles.cronjob.yaml +++ b/manifests/0000_50_olm_07-collect-profiles.cronjob.yaml @@ -12,6 +12,9 @@ spec: jobTemplate: spec: template: + metadata: + annotations: + target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}' spec: securityContext: runAsNonRoot: true diff --git a/scripts/generate_crds_manifests.sh b/scripts/generate_crds_manifests.sh index fadd85a16c..e19cb3896c 100755 --- a/scripts/generate_crds_manifests.sh +++ b/scripts/generate_crds_manifests.sh @@ -286,6 +286,9 @@ spec: jobTemplate: spec: template: + metadata: + annotations: + target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}' spec: securityContext: runAsNonRoot: true