OpenShift Virtualization
TMA-OPENSHIFT-VIRT-1.3
Disable persistentReservations feature gate
설명
Persistentreservations are used to reserve a shared LUN among multiple virtual machines. This feature is required when the Windows guest makes use of the Windows Shared Cluster Filesystem. Enabling persistent reservations introduces additional complexity and overhead, as it requires calculated management of resource allocation and monitoring to ensure that reservations are not overcommitted and do not impact the overall performance of the system. Enabling the persistent reservations feature introduces and relies upon an optional component with elevated privileges (qemu - pr - helper). ... Audit: Passes when .spec.featureGates.persistentReservation is false or unset (the default is disabled). Requires oc logged in to the cluster with read access.
점검 방법
감사 방식: 셸 명령
command -v oc >/dev/null 2>&1 || exit 1; v=$(oc get hyperconverged kubevirt-hyperconverged -n openshift-cnv -o jsonpath='{.spec.featureGates.persistentReservation}') || exit 1; [ "$v" = true ] && echo noncompliant || echo compliant- 예상 출력
compliant
조치 방법
조치 방식: 가이드 또는 인프라 패치
Disable the persistent reservations feature by setting to persistentReservations False for applicable hyperconverged resources. $ oc patch hyperconverged kubevirt - hyperconverged - n openshift - cnv -- type='json' -p='[ {"op": "replace", "path": "/spec/featureGates/persistentReservation", "value": false }, ]'
속성
- 운영 체제
- 모두
- 태그
- openshift-virtfeature-gates
- 참고 자료
- CIS Red Hat OpenShift Virtual Machine Extension Benchmark v1.0.0 - 1.3 Disable persistentReservations feature gate
이 호스트 점검하기
감사 권한이 있는 시스템에서 실행하세요. 스캔은 읽기 전용입니다.
tmaegis scan --target openshift-virt