Red Hat OpenShift
TMA-OPENSHIFT-5.7.1
Create administrative boundaries between resources using namespaces
Descrição
Use namespaces to isolate your Kubernetes objects. The benchmark marks this recommendation Manual.
Como é verificado
Método de auditoria: Revisão manual
OpenShift Projects wrap Kubernetes namespaces and are used by default in OpenShift 4. Run the following command to obtain a list of all non-default OpenShift and Kubernetes namespaces in the cluster. oc get namespaces -o json | jq '.items[] | select(.metadata.name|test("(?!default|kube-.|openshift.)^.*")) | .metadata.name' Ensure that these namespaces are the ones you need and are adequately administered as per your requirements.
Como é corrigido
Método de correção: Orientação ou patch de infraestrutura
Follow the documentation and create namespaces for objects in your deployment as you need them.
Propriedades
- Sistemas operacionais
- Qualquer
- Tags
- openshiftpolicies
- Referência
- CIS Red Hat OpenShift Container Platform Benchmark v2.0.0 - 5.7.1 Create administrative boundaries between resources using namespaces