TMAegis
openshift-virt için daha fazla kural

OpenShift Virtualization

TMA-OPENSHIFT-VIRT-1.7

Ensure KSM is disabled

DüşükDüzey 2Otomatikopenshift-virt

Açıklama

Kernel Samepage Merging (KSM) is a Linux kernel feature that merges identical memory pages across virtual machines running on a single host, potentially reducing memory usage and improving system performance. Audit: Passes when .spec.ksmConfiguration of the HyperConverged resource is unset or false (KSM is disabled by default); any KSM node selector configuration fails. Requires oc logged in to the cluster with read access.

Nasıl denetlenir

Denetim yöntemi: Kabuk komutu

shell
command -v oc >/dev/null 2>&1 || exit 1; v=$(oc get hyperconvergeds kubevirt-hyperconverged -n openshift-cnv -o jsonpath='{.spec.ksmConfiguration}') || exit 1; case "$v" in ""|false|null|"{}") echo compliant;; *) echo noncompliant;; esac
Beklenen çıktı
compliant

Nasıl düzeltilir

Düzeltme yöntemi: Kılavuz veya altyapı yaması

Disable the KSM feature.For example, by directly editing the object with oc edit hyperconverged kubevirt-hyperconverged -n openshift-cnv and set the field to false

Özellikler

İşletim sistemleri
Herhangi biri
Etiketler
openshift-virtmemoryksm
Referans
CIS Red Hat OpenShift Virtual Machine Extension Benchmark v1.0.0 - 1.7 Ensure KSM is disabled

Bu ana makineyi denetle

Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.

shell
tmaegis scan --target openshift-virt --level 2