Namespace selector
A namespace selector is a label-based configuration that identifies Kubernetes namespaces matching specified labels.
Google Anthos in Action
A NamespaceSelector is an Anthos Config Management object that selects namespaces by matching their Kubernetes labels.
- How it is used
- Targets namespace-scoped ACM configurations through namespace labels instead of assigning each configuration to a single named namespace.
- How deep it goes
- Shows selector YAML, annotation-based use, and repository-mode restrictions; does not explain selector reconciliation internals.
- Examples
- Uses a production-label selector and annotated developer Role, plus a selector targeting a Config Connector project namespace.
- What you can do after
- Operate/configure it: define a label-matching selector and reference it from namespace-scoped objects while accounting for repository mode.
Read how Google Anthos in Action explains namespace selector →
Acing the Certified Kubernetes Administrator Exam, Second Edition
A namespace selector is a label-based selector that identifies namespaces whose pods may be included in a network policy rule.
- How it is used
- Controls pod traffic in NetworkPolicy ingress and egress rules by narrowing allowed connections to selected namespaces.
- How deep it goes
- Explains selector composition and OR-versus-AND behavior, but does not provide a standalone namespace-selector manifest.
- Examples
- Uses frontend pods in myproject accessing db pods in default alongside CIDR exceptions and TCP port restrictions.
- What you can do after
- Evaluate NetworkPolicy rules and configure namespace-scoped traffic permissions with selector combinations.
Related concepts
- Kubernetes Deploymentconfigures · A Kubernetes Deployment is a declarative API resource that manages the desired state, scaling, and updates of a replicated application workload.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

