TMAegisБета
Другие правила для openshift

Red Hat OpenShift

TMA-OPENSHIFT-4.2.11

Verify that the RotateKubeletServerCertificate argument is set to true

СреднийУровень 2Ручная проверкаopenshift

Описание

Enable kubelet server certificate rotation. The benchmark marks this recommendation Manual.

Как проверяется

Метод проверки: Ручная проверка

Эту рекомендацию нельзя проверить автоматически. Сканирование выводит её вместе с этими инструкциями при указании флага --include-manual.

Run the following command to check if the RotateKubeletServerCertificate feature gate is enabled on each node: for node in $(oc get nodes -ojsonpath='{.items[*].metadata.name}'); do oc get --raw /api/v1/nodes/$node/proxy/configz | jq '.kubeletconfig.featureGates.RotateKubeletServerCertificate' done Verify that all nodes return true. Run the following command to check that each node is configured to rotate certificates: for node in $(oc get nodes -ojsonpath='{.items[*].metadata.name}').

Как исправляется

Метод исправления: Рекомендация или патч инфраструктуры

Set the RotateKubeletServerCertificate argument to true.

Свойства

Операционные системы
Любая
Теги
openshiftworker-nodekubelet
Источник
CIS Red Hat OpenShift Container Platform Benchmark v2.0.0 - 4.2.11 Verify that the RotateKubeletServerCertificate argument is set to true