Sample Header Ad - 728x90

How to Pin Dedicated CPUs to Pods in OpenShift Without Interference from Other Processes?

0 votes
1 answer
208 views
I'm working with customers who require the configuration of dedicated CPUs in OpenShift. While I’m familiar with options like CPU isolation and reserved CPU cores, I’m looking for a way to pin specific CPU cores to a pod. The goal is to ensure that these CPU cores are fully dedicated to the pod and not accessible to other pods or processes running on the operating system. I'm also familiar with taskset/cset and other linux commands, but need this to be addressed on the OpenShift/K8s level. Is there a way to achieve this in OpenShift, ensuring that the CPU core remains exclusive to the assigned pod without any interference from other processes? UPDATE: I’m looking for exclusive cpu usage. Without the option for system services of the node or other non pinned pods catching the entire vcpus of the machine. For example, if I’m asking for 4 CPU’s. Let’s assume I get 2,3,4,5 out of a 24 core node. I would like to avoid pods or aervices without pinning to get all cpus (0-23) which will also get 2,3,4,5.
Asked by Daniel (1 rep)
Sep 8, 2024, 07:36 AM
Last activity: Oct 5, 2024, 09:11 PM