Blog

  • Enabling CPU Manager and CPU Pinning in OpenShift

    By default, OpenShift is a greedy scheduler, when a Pod starts it grabs the first requested resource CPU/Memory. There is a reserved bit of memory and CPU for kubelet and System services saved. A Pod may end up spanning different NUMA domains

    The CPU Manager packs each Pod onto NUMA domains:.

    1. single-numa-node a pod might fail to schedule on a node that has enough total CPU capacity but lacks enough contiguous cores. If you go to schedule a 8 vCPU pod, and you have 4vcpu on one node, and 4 vcpu on another, it won’t be able to allocate ending with a TopologyAffinityError.
    2. restricted packs it into as few NUMA nodes as possible. This one is probably preferred as it allows for rounding.

    Keep in mind, this applies for the whole system, and you may want to isolate to only a few workers you can put them in a separate pool. You can see https://docs.redhat.com/en/documentation/openshift_container_platform/4.20/html/scalability_and_performance/using-cpu-manager#setting_up_cpu_manager_using-cpu-manager-and-topology-manager

    apiVersion: machineconfiguration.openshift.io/v1
    kind: KubeletConfig
    metadata:
      name: cpumanager-enabled
    spec:
      machineConfigPoolSelector:
        matchLabels:
          pools.operator.machineconfiguration.openshift.io/worker: ""
      kubeletConfig:
        cpuManagerPolicy: static 
        cpuManagerReconcilePeriod: 5s
        topologyManagerPolicy: single-numa-node 
        reservedSystemCPUs: "0,1" 
        memoryManagerPolicy: Static
    

    If a Pod is idle, those cores sit idle. They won’t share the spare cycles of another Pod.

    If a Pod used 100m, it’ll need to specificy round numbers now cpu: "2" in some cases.

    For large workloads , CPU pinning is most effective when the pod is sized to fit within a single NUMA node. If your pod is so large that it spans multiple sockets, the benefits of pinning diminish unless the application itself is NUMA-aware.

    You can see more details at OpenShift 4.20: Using CPU Manager and Topology Manager [docs.redhat.com]

  • Workloads: From Bare Metal to KubeVirt

    Workloads run on full physical servers or are managed as virtual machines. KubeVirt brings cloud-native approach to fleet management and makes VMs first-class Kubernetes resources.

    1. Physical Infrastructure

    Typically, things begin with a physical server. A Baseboard Management Controller (BMC) provides hardware management, while firmware initializes CPU and memory resources. At this stage, all resources belong to a single system with no virtualization.

    Key point: Physical hardware only, with no abstraction layer.


    2. Traditional Virtualization

    A host operating system such as RHEL, SUSE, or Ubuntu runs on the server. Libvirt and QEMU provide virtualization services, allowing multiple VMs to share the same hardware.

    Key point: Virtual machines improve hardware utilization while remaining tied to individual hosts.


    3. Kubernetes + KubeVirt

    KubeVirt integrates virtualization into Kubernetes. Instead of managing VMs directly on each host, Kubernetes manages VM lifecycle through KubeVirt components such as Virt Operator, Virt Controller, and Virt Launcher.

    Virtual machines become Kubernetes-managed workloads that can be scheduled, automated, and operated alongside containers.


    Conclusion

    The progression is straightforward Physical Server run Libvirt/QEMU Virtualization and are managed as a fleet with Kubernetes-Orchestrated Virtualization with KubeVirt.

    Note: based on an ad-hoc presentation….

  • Aside: cert-manager: If You’re Running On-Prem Without Direct DNS Access

    One of the more common challenges in disconnected or tightly controlled on-prem OpenShift environments is certificate validation when the cluster doesn’t have direct access to external DNS resolvers.

    If cert-manager’s DNS-01 validation cannot reach the appropriate DNS infrastructure, certificate issuance may fail even when the DNS records themselves are correct. In these environments, you can configure the cert-manager operator to use specific internal recursive DNS servers instead of relying on default resolver behavior.

    The following patch updates the cert-manager configuration to query only the designated recursive nameservers:

    oc patch certmanager cluster --type=merge -p='{
      "spec": {
        "controllerConfig": {
          "overrideArgs": [
            "--dns01-recursive-nameservers=10.0.10.4:53,10.0.10.5:53",
            "--dns01-recursive-nameservers-only"
          ]
        }
      }
    }'
    

    This approach is particularly useful in air-gapped, restricted-network, or enterprise environments where outbound DNS traffic is blocked and all name resolution must flow through approved internal resolvers.

    A small change, but often the difference between endless certificate troubleshooting and a clean, automated issuance process.

  • Capturing Kernel Crash Dumps on Persistent Memory on OpenShift Container Platform on IBM Power

    Co-authored and reposted here…

    Kaushik Talathi, Engineer, OpenShift on IBM Power

    Paul Bastide, Engineering Lead, OpenShift on IBM Power

    When a worker node panics, the kernel’s last words are the most valuable debugging artifact you’ll ever get — if you managed to capture them. On your OpenShift Container Platform on IBM Power or on IBM Power Virtual Server, you can capture kernel crash dumps to available persistent memory (pmem) on the nodes. kdump is able to write vmcores to a pmem-backed filesystem: it’s fast, it’s dedicated, and it keeps multi-gigabyte crash dumps off the root disk or NFS servers.

    Using this document, you learn how to: create a pmem namespace with ndctl, format and mount it via MachineConfig systemd units, configure kdump through butane, trigger a crash with echo c > /proc/sysrq-trigger — and the vmcore landed exactly where it should, on /var/mnt/pmem.

    Red Hat CoreOS is an immutable OS which doesn’t shift with ndctl; you can’t just use it by default. This document shows how to use a privileged pod with access to /dev and /sys, running ndctl create-namespace --mode=fsdax against the host’s NVDIMM subsystem. This day-2 action is useful when troubleshooting and not intended to be used by default – in exceptional debugging of storage problems.

    When we don’t have direct access to tools on the file system, we use oneshot systemd unit, delivered by MachineConfig, that runs the privileged container to execute:

    [Unit]
    Description=Create PMEM namespace (ndctl via privileged container)
    ConditionPathExistsGlob=/sys/bus/nd/devices/region*
    ConditionPathExists=!/dev/pmem0
    Wants=network-online.target
    After=network-online.target
    Before=format-pmem0.service var-mnt-pmem.mount
    
    [Service]
    Type=oneshot
    RemainAfterExit=yes
    TimeoutStartSec=600
    ExecStart=/usr/local/bin/pmem-namespace.sh
    
    [Install]
    WantedBy=multi-user.target
    

    The two Condition lines are doing the heavy lifting. If /dev/pmem0 already exists, there’s nothing to do. If the node has no NVDIMM regions at all, there’s nothing that can be done. In both cases systemd skips the unit — skipped, not failed — and boot proceeds normally. That’s the behavior we want across a fleet where not every worker has pmem.

    The script it calls is small and idempotent:

    #!/usr/bin/env bash
    set -euo pipefail
    
    NDCTL_IMAGE="${NDCTL_IMAGE:-quay.io/centos/centos:stream10}"
    AUTHFILE="/var/lib/kubelet/config.json"
    
    [ -b /dev/pmem0 ] && { echo "already present"; exit 0; }
    ls /sys/bus/nd/devices/region* >/dev/null 2>&1 || { echo "no NVDIMM regions"; exit 0; }
    
    AUTH_ARGS=()
    [ -f "${AUTHFILE}" ] && AUTH_ARGS=(--authfile "${AUTHFILE}")
    
    podman run --rm --privileged "${AUTH_ARGS[@]}" \
      -v /dev:/dev -v /sys:/sys \
      "${NDCTL_IMAGE}" \
      bash -c 'command -v ndctl >/dev/null 2>&1 || dnf -y -q install ndctl; ndctl create-namespace --mode=fsdax'
    
    udevadm settle
    [ -b /dev/pmem0 ] || { echo "expected /dev/pmem0" >&2; exit 1; }
    

    By default it pulls CentOS Stream 10 and installs ndctl on the fly. For disconnected environments or faster boots, prebuild a two-line image (FROM quay.io/centos/centos:stream10 + dnf -y install ndctl daxctl), push it to your registry, and point NDCTL_IMAGE at it — the script already passes the node’s pull secret via --authfile.

    The startup flows:

    pmem-namespace.service  →  format-pmem0.service  →  var-mnt-pmem.mount  →  kdump.service
       (create if needed)        (mkfs once, ever)         (xfs, nofail)        (arm capture kernel)
    

    All of it — the script, the units, the crashkernel= kernel arguments, /etc/kdump.conf, and /etc/sysconfig/kdump — lives in one butane file rendered to a single MachineConfig. The full listing is in the companion setup document; render and apply is the usual two-liner:

    butane 99-worker-pmem-kdump.bu -o 99-worker-pmem-kdump.yaml
    oc apply -f 99-worker-pmem-kdump.yaml
    

    What to do with the cores

    Dumps arrive under /var/mnt/pmem/<ip>-<date>-<time>/ as vmcorevmcore-dmesg.txt, and kexec-dmesg.log. Three habits worth adopting:

    Read vmcore-dmesg.txt first. It’s the crashed kernel’s ring buffer as plain text, panic backtrace at the bottom. A large fraction of crashes are diagnosed from this file alone, no tooling required.

    Use toolbox for deep analysis. This is where toolbox shines. From oc debug node/<node> → chroot /host → toolbox, you get a privileged support-tools container where you can dnf install crash plus the matching kernel-debuginfo and open the vmcore in place. Debuginfo is huge and must match the crashed kernel exactly, so in practice we often stream the dump off the node instead —

    oc debug node/worker-0 -- \
      tar czf - -C /host/var/mnt/pmem 127.0.0.1-2026-07-09-12:06:09 > vmcore-worker-0.tgz
    

    — and run crash on a RHEL box where the right debuginfo installs cleanly.

    Prune automatically. Persistent memory is not infinite, and a filtered vmcore is still roughly proportional to RAM. A tiny systemd timer in the same MachineConfig deletes dump directories older than 14 days, and its ConditionPathIsMountPoint=/var/mnt/pmem means it too is a no-op on nodes without pmem.

    Verifying it

    After the MachineConfigPool converges:

    oc debug node/worker-0
    chroot /host
    systemctl status kdump
    cat /sys/kernel/kexec_crash_loaded    # 1 means armed
    findmnt /var/mnt/pmem                 # xfs on /dev/pmem0
    

    And in a maintenance window, once you reboot, you can see the vmcore survived so you don’t have to wonder:

    echo c > /proc/sysrq-trigger
    # node dumps, reboots, and then:
    find /var/mnt/pmem -type f
    /var/mnt/pmem/127.0.0.1-2026-07-09-12:06:09/vmcore
    /var/mnt/pmem/127.0.0.1-2026-07-09-12:06:09/vmcore-dmesg.txt
    /var/mnt/pmem/127.0.0.1-2026-07-09-12:06:09/kexec-dmesg.log
    

    One caveat for mixed fleets: on a node where the pmem mount never exists, kdump’s path /var/mnt/pmem falls back to the root filesystem. If only some of your workers carry pmem, put this MachineConfig on a dedicated pool (e.g., a worker-pmem role), or switch kdump.conf to a direct dump target (xfs /dev/pmem0 + path /) so kdump fails loudly rather than dumping to /.

    Wrapping up

    The pattern here generalizes beyond pmem: when RHCOS doesn’t have the tool, a privileged container run by podman from a oneshot systemd unit is how you run it at boot — with Condition* directives making the whole thing safe on nodes where it doesn’t apply. Toolbox is the interactive face of the same idea, and it earns its keep again when it’s time to open the vmcore with crash.

    Credit where it’s due: the namespace-creation discovery, the kdump-to-pmem configuration, and the end-to-end crash validation are Kaushik Talathi’s work — this post just wires his findings into the boot sequence so nobody ever has to remember the privileged pod again.

    Validated on OpenShift 4.18, RHCOS (RHEL 9.x, kernel 5.14.0-570.x).

    References

  • Aside: Applying Kernel Tunnables quickly (randomize_va_space)

    When a Tuned profile changes a sysctl such as:

    [sysctl]
    kernel.randomize_va_space=0

    You can use TuneD Custom Resource:

    apiVersion: tuned.openshift.io/v1
    kind: Tuned
    metadata:
      name: disable-aslr
      namespace: openshift-cluster-node-tuning-operator
    spec:
      profile:
      - name: disable-aslr-profile
        data: |
          [main]
          summary=Disable ASLR
          include=openshift-node
    
          [sysctl]
          kernel.randomize_va_space=0
    
      recommend:
      - priority: 20
        profile: disable-aslr-profile
        match:
        - label: node-role.kubernetes.io/worker

    The Node Tuning Operator/tuned applies it dynamically via the sysctl interface, so a reboot is typically not required. The new value takes effect immediately on the node after the profile is applied.

    You can verify:

    oc debug node/<node>
    chroot /host
    
    sysctl kernel.randomize_va_space

    or

    cat /proc/sys/kernel/randomize_va_space

    Disabling ASLR through a Tuned object, the setting is applied without a node reboot. You can usually observe the change within seconds after the profile becomes active.

  • Using zstd for Fast and Efficient Compression on OpenShift

    When you need to archive files directly on an OpenShift node, zstd is a great choice because it is already available on the system and provides an excellent balance of compression ratio and performance.

    Access the Target Node

    Start by opening a remote shell to the node:

    oc rsh node/<node-target>

    Maximum Compression

    To prioritize the smallest archive size, use the ultra compression level (-22) with all available CPU threads:

    time tar -I 'zstd -T0 --ultra -22' -cf /tmp/archive.tar.zst /tmp/random_100m.dat

    Example result:

    real    0m30.007s
    user    0m29.346s
    sys     0m0.384s

    Maximum Compression with a Single Thread

    If you want to limit CPU usage, run the same compression level with a single thread:

    time tar -I 'zstd -T1 --ultra -22' -cf /tmp/archive.tar.zst /tmp/random_100m.dat

    Example result:

    real    0m30.677s
    user    0m30.322s
    sys     0m0.275s

    The runtime is similar, making this a viable option when CPU resources are constrained.

    Fast Throughput Compression

    For large files where speed is more important than archive size, use a lower compression level:

    time tar -I 'zstd -T0 -1' -cf /tmp/archive.tar.zst /var/log/random_1000m.dat

    Example result:

    real    0m18.716s
    user    0m14.327s
    sys     0m16.420s

    Fast Compression with One Thread

    You can further reduce CPU consumption by limiting compression to a single thread:

    time tar -I 'zstd -T1 -1' -cf /tmp/archive.tar.zst /var/log/random_1000m.dat

    Example result:

    real    0m19.121s
    user    0m13.434s
    sys     0m14.402s

    Key Takeaways

    • Use --ultra -22 when achieving the highest compression ratio is the primary goal.
    • Use -1 for the fastest archive creation and best throughput.
    • -T0 allows zstd to use all available CPU threads.
    • -T1 limits compression to a single thread and can be useful on busy systems.
    • In these examples, single-threaded and multi-threaded runs showed only minor differences in elapsed time, making thread selection largely a resource-management decision.
  • OpenShift: Adding Public Key to core user

    Post-installation, the supported way to add another SSH public key for the core user on OpenShift/RHCOS nodes is by updating or creating a MachineConfig that contains all desired sshAuthorizedKeys. The Machine Config Operator (MCO) then rolls the change out to the targeted MachineConfigPool.

    Note: OpenShift commonly uses 99-worker-ssh and 99-master-ssh to manage SSH keys for the core user.

    1. Export the existing MachineConfig for worker
    oc get machineconfig 99-worker-ssh -o yaml > 99-worker-ssh.yaml
    1. Add the second public key

    Edit the file and ensure both keys are present under sshAuthorizedKeys.

    Example:

    apiVersion: machineconfiguration.openshift.io/v1
    kind: MachineConfig
    metadata:
      labels:
        machineconfiguration.openshift.io/role: worker
      name: 99-worker-ssh
    spec:
      config:
        ignition:
          version: 3.5.0
        passwd:
          users:
          - name: core
            sshAuthorizedKeys:
            - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAEXISTINGKEY user1@example
            - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAANEWKEY user2@example

    Important: The sshAuthorizedKeys list is authoritative. Include the existing key(s) plus the new key. Do not provide only the new key unless you want to remove the old ones. The MCO only supports modifying sshAuthorizedKeys for the core user.

    1. Apply the MachineConfig
    oc apply -f 99-worker-ssh.yaml

    The Machine Config Operator will render a new configuration and update the nodes in the associated MachineConfigPool.

    1. Watch the rollout

    Check the MachineConfigPool:

    oc get mcp

    Watch until the pool reports:

    • UPDATED=True
    • UPDATING=False
    • DEGRADED=False
    1. Verify one of the nodes
    ssh core@<node-ip>

    Using either the original key or the newly added key.

    You can also verify on the node:

    oc debug node/<node-name>
    chroot /host
    cat /home/core/.ssh/authorized_keys

    The file should contain both public keys

    This will add both public keys to the core user on all worker nodes.

    You can repeat for the control plane.

    References: Update SSH Keys

  • IPI PowerVS: Power10 Migration in One Change

    Running an OpenShift IPI cluster on PowerVS? Moving to Power10 can be as simple as updating the machine systemType and letting OpenShift perform a rolling node replacement. The cluster provisions new nodes, migrates workloads, and removes the old VMs automatically. Full details at Christy Norman’s blog. [community.ibm.com]

    Control plane

    oc patch controlplanemachineset cluster \
      -n openshift-machine-api \
      --type=merge \
      -p '{"spec":{"template":{"machines_v1beta1_machine_openshift_io":{"spec":{"providerSpec":{"value":{"systemType":"s1022"}}}}}}}'
    

    Workers

    oc patch machineset <worker-machineset> \
      -n openshift-machine-api \
      --type=merge \
      -p '{"spec":{"template":{"spec":{"providerSpec":{"value":{"systemType":"s1022"}}}}}}'
    

    Credit: Christy Norman, “Migrating an OpenShift IPI Cluster to Power10 on Power Virtual Server.” [community.ibm.com]

  • OpenShift 4.22.0 ClusterImagePolicy Feature enforces signature verification on Release and Payload

    With OpenShift Container Platform 4.22, Red Hat enforces signature verification for the release image and payload (cluster operators and oeprands). The verification is controlled by the ClusterImagePolicy which specifies the Root CA and a scope of quay.io/openshift-release-dev/ocp-release and quay.io/openshift-release-dev/ocp-v4.0-art-dev. When an image is used on a node, the signatures are pulled from the mirror along with the image, and verified before starting a container. This verification expands on the ocp-release scope.

    apiVersion: config.openshift.io/v1
    kind: ClusterImagePolicy
    metadata:
      name: openshift
    spec:
      policy:
        rootOfTrust:
          policyType: PublicKey
          publicKey:
            keyData: ...
      scopes:
      - quay.io/openshift-release-dev/ocp-release
      - quay.io/openshift-release-dev/ocp-v4.0-art-dev
      ...
    

    If you are running a disconnected cluster and the signature is missing from your mirror, you’ll see the following:

    • Install: The bootstrap node hangs and does not install as the signature is not verified.
    • Upgrade: The ClusterImagePolicy enforces signature verification. If the signatures are missing from your mirror, the Cluster Version Operator (CVO) will be blocked, preventing node updates.

    In order to continue, you may do one of the following:

    1. Use oc mirror --v2 to mirror your content. This feature automatically honors signatures … see Mirroring images for a disconnected installation using the oc-mirror plugin
    2. If you are currently using oc adm release mirror, you can copy the sig file for the release payload:
    $ oc image mirror quay.io/openshift-release-dev/ocp-release:${RELEASE_DIGEST}.sig registry.example.com/openshift/whatever:${RELEASE_DIGEST}.sig
    

    You repeat for each image listed in the release.txt

    RELEASE_DIGEST:: Specifies your digest image with the : character replaced by a - character. For example: sha256:884e1ff5effeaa04467fab9725900e7f0ed1daa89a7734644f14783014cebdee becomes sha256-884e1ff5effeaa04467fab9725900e7f0ed1daa89a7734644f14783014cebdee.sig.

    You must switch to using oc mirror --v2.

    Good luck with your disconnected clusters, and ensure image signatures are present in your local mirror using one of the mirroring methods.

    Note: you can use this with your application / deliverable for enhanced security.

    References

    1. Red Hat OpenShift Docs: Chapter 12. Manage secure signatures with sigstore
    2. Red Hat Developer: How to verify container signatures in disconnected OpenShift
    3. Red Hat Developer: Verify Cosign bring-your-own PKI signature on OpenShift
    4. IBM Power Blog Mirroring for OpenShift on IBM Power in Disconnected Environments
    5. IBM Power Blog OpenShift 4.21.0 ClusterImagePolicy Feature enforces signature verification
  • 2026-07: Additions IBM Power Open Source Images on the IBM Container Registry

    The IBM Linux on Power team has released some new open source container images into the IBM Container Registry (ICR). These images are available for no-charge and can be used in your development and production environments.

    Image NameTag NameProject LicensesImage Pull CommandLast Published On
    clickhousev26.3.9.8-ltsApache-2.0podman pull icr.io/ppc64le-oss/clickhouse-ppc64le:v26.3.9.8-ltsJuly 1, 2026
    open-webui0.7.2OpenWebUI Licensepodman pull icr.io/ppc64le-oss/open-webui-ppc64le:0.7.2July 1, 2026
    ollamav0.24.0MITpodman pull icr.io/ppc64le-oss/ollama-ppc64le:v0.24.0July 1, 2026
    agentstack-chat0.4.3Apache-2.0podman pull icr.io/ppc64le-oss/agentstack-chat-ppc64le:0.4.3July 17, 2026
    agentstack-rag0.4.3Apache-2.0podman pull icr.io/ppc64le-oss/agentstack-rag-ppc64le:0.4.3July 17, 2026
    agentstack-form0.4.3Apache-2.0podman pull icr.io/ppc64le-oss/agentstack-form-ppc64le:0.4.3July 17, 2026
    agentstack-server0.4.3Apache-2.0podman pull icr.io/ppc64le-oss/agentstack-server-ppc64le:0.4.3July 17, 2026

    Refer to https://community.ibm.com/community/user/blogs/priya-seth/2023/04/05/open-source-containers-for-power-in-icr for more details.

    If you need opensource software enabled on IBM Power, reach out at https://www.ibm.com/power/resources/isv/enablement-request/