TMAegis
openshift-virt 관련 규칙 더 보기

OpenShift Virtualization

TMA-OPENSHIFT-VIRT-2.2

Disable overcommitting guest memory

보통레벨 1수동 검토openshift-virt

설명

The overcommitGuestOverhead configuration option enables the request for additional virtual machine management memory inside the virt - launcher pod. The overcommit feature is used to increase virtual machine density on the node, as long as the virtual machine doesn’t request all the memory that it would need if fully loaded. However, if the VM were to use all of the memory it could, this would lead to the OpenShift Scheduler killing the workload. The benchmark marks this recommendation Manual; TMAegis reports it as a manual review item with the audit steps.

점검 방법

감사 방식: 수동 검토

이 권장 사항은 자동으로 점검할 수 없습니다. --include-manual 옵션을 전달하면 스캔 결과에 이 지침과 함께 표시됩니다.

Verify that no virtual machines are using the overcommitGuestOverhead setting: $ oc get vm - ojson - A |jq '.items[] | select(.spec.template.spec.domain.resources.overcommitGuestOverhead == true)| .metadata.namespace + "/" + .metadata.name'

조치 방법

조치 방식: 가이드 또는 인프라 패치

Stop any guest with this flag enabled and remove the flag before restarting. This flag can be removed on a given VM with the following command: $ oc patch vm <vm-name> --type='json' -p='[ {"op": "remove", "path": "/spec/template/spec/domain/resources/overcommitGuestOverhead"}, ]'

속성

운영 체제
모두
태그
openshift-virtmanual-review
참고 자료
CIS Red Hat OpenShift Virtual Machine Extension Benchmark v1.0.0 - 2.2 Disable overcommitting guest memory