The default namespace should not be used¶
Description¶
Kubernetes cluster resources should be segregated by namespace to support security controls and resource management.
Remediation Steps¶
Kubernetes Manifest (YAML)¶
Ensure that a Kubernetes.Pod has a namespace
field in the metadata
.
Example Configuration¶
apiVersion: v1
kind: Pod
metadata:
name: hello
namespace: hello
spec:
containers:
- name: hello
image: busybox
command: ['sh', '-c', 'echo "Hello, Kubernetes!" && sleep 3600']