Skip to main content
Glama
policy-namespace-scope.md1.11 kB
# Policy Namespace Scope Your policy can be applied cluster-wide or limited to specific namespaces. ## Available Namespaces in Your Cluster: {{namespaces}} ## Choose the scope for your policy: 1. **Apply to all namespaces** (cluster-wide enforcement) - Type: `all` or `1` 2. **Apply only to specific namespaces** (inclusive list) - Type: `include: namespace1, namespace2, namespace3` - Example: `include: production, staging` 3. **Apply to all namespaces EXCEPT specific ones** (exclusion list) - Type: `exclude: namespace1, namespace2` - Example: `exclude: kube-system, kube-public` **Your choice**: [Type your selection] --- ## Examples: **For cluster-wide policy:** ``` all ``` **To apply only to production and staging:** ``` include: production, staging ``` **To exclude system namespaces:** ``` exclude: kube-system, kube-public, kube-node-lease ``` ## Note System namespaces (kube-system, kube-public, kube-node-lease) are often excluded from policies to prevent conflicts with Kubernetes core functionality. Consider whether your policy should apply to these system namespaces.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vfarcic/dot-ai'

If you have feedback or need assistance with the MCP directory API, please join our Discord server