OpenShift Virtualization
TMA-OPENSHIFT-VIRT-1.4
Disable downwardMetrics feature gate
中レベル 1自動openshift-virt
説明
The downwardMetrics feature allows users to collect and monitor additional metrics related to host and virtual machine performance. Audit: Passes when .spec.featureGates.downwardMetrics is false or unset (the default is disabled). Requires oc logged in to the cluster with read access.
チェック方法
監査方法: シェルコマンド
shell
command -v oc >/dev/null 2>&1 || exit 1; v=$(oc get hyperconverged kubevirt-hyperconverged -n openshift-cnv -o jsonpath='{.spec.featureGates.downwardMetrics}') || exit 1; [ "$v" = true ] && echo noncompliant || echo compliant- 期待される出力
compliant
修正方法
修正方法: ガイダンスまたは IaC パッチ
Set downwardMetrics to False $ oc patch hyperconverged kubevirt-hyperconverged - n openshift - cnv --type='json' -p='[ {"op": "replace", "path": "/spec/featureGates/downwardMetrics", "value": false }, ]'
プロパティ
- オペレーティングシステム
- すべて
- タグ
- openshift-virtfeature-gates
- 参照
- CIS Red Hat OpenShift Virtual Machine Extension Benchmark v1.0.0 - 1.4 Disable downwardMetrics feature gate
このホストをチェック
監査が許可されているマシンで実行してください。スキャンは読み取り専用です。
shell
tmaegis scan --target openshift-virt