Infrastructure Namespace Management¶
Directory Context
This document is part of the Infrastructure Directory. See the Infrastructure Directory Inventory for related resources.
Overview¶
The scanner-infrastructure
chart manages Kubernetes namespaces for container scanning operations. Proper namespace management is important for security isolation, resource management, and multi-team deployments.
Namespace Implementation¶
Namespace Creation¶
The chart can optionally create a dedicated namespace:
This namespace:
- Isolates scanning operations from other workloads
- Groups scanning resources together
- Enables namespace-level security controls
Using Existing Namespaces¶
For existing namespaces, disable namespace creation:
Namespace Organizational Patterns¶
Dedicated Scanning Namespace¶
For centralized scanning operations:
Environment-Specific Namespaces¶
For environment-specific scanning:
Team-Specific Namespaces¶
For multi-team deployments:
Namespace Security Controls¶
Network Policies¶
Add network policies to restrict scanner communication:
Resource Quotas¶
Apply resource quotas to scanning namespaces:
Cross-Namespace Scanning¶
For scanning pods in other namespaces:
Configuration Reference¶
Parameter | Description | Default | Required |
---|---|---|---|
createNamespace |
Create the namespace | true |
No |
targetNamespace |
Target namespace for installation | inspec-test |
Yes |
namespace.labels |
Labels for the namespace | {} |
No |
namespace.annotations |
Annotations for the namespace | {} |
No |
rbac.clusterWide |
Enable cluster-wide permissions | false |
No |
Best Practices¶
- Use Dedicated Namespaces: Isolate scanning operations from other workloads
- Apply Namespace Labels: Label namespaces for identifying scanning resources
- Implement Network Policies: Restrict scanner communication to necessary endpoints
- Define Resource Quotas: Limit resource consumption by scanning operations
- Consider Namespace Hierarchy: Organize namespaces by environment, team, or application
- Avoid Cluster-Wide Permissions: Use namespace-specific permissions when possible