Key Concepts
Namespace
A logical boundary that isolates resources within a cluster.
Resource Quota
Limits on total resource consumption within a namespace.
Limit Range
Default and maximum resource constraints for containers.
System Namespace
Protected namespaces used by Kubernetes components.
Required Permissions
How to Create a Namespace
1
Select Cluster
Choose a cluster from the dropdown.
2
Click Create Namespace
Click the Create Namespace button.
3
Choose a Template
Select a template based on your needs:
- Basic Namespace - Simple namespace with labels
- With Resource Quota - Includes CPU, memory, and object count limits
- With Limit Range - Includes default container resource constraints
4
Configure YAML
Edit the namespace name and any additional settings in the YAML editor.
5
Create
Click Create to apply.
Namespace names must be valid DNS labels: lowercase letters, numbers, and hyphens only. Maximum 63 characters.
How to Edit a Namespace
1
Select the Namespace
Click on the namespace row to open details, then click Edit YAML.
2
Modify YAML
Edit labels, annotations, or other mutable fields.
3
Save
Click Update to apply changes.
How to Delete a Namespace
1
Select the Namespace
Click the actions menu on the namespace row.
2
Click Delete
Select Delete from the menu.
3
Confirm
Confirm the deletion.
System Namespaces
The following namespaces are protected and cannot be deleted:Troubleshooting
Namespace stuck in Terminating status
Namespace stuck in Terminating status
This usually indicates resources with finalizers that cannot complete:
- Check for stuck persistent volume claims
- Look for resources with deletion finalizers
- Consider manually removing finalizers as a last resort
Cannot create namespace
Cannot create namespace
- Verify you have write permission
- Check namespace name follows DNS label rules (lowercase, numbers, hyphens only)
- Ensure name is not already taken
Cannot delete namespace
Cannot delete namespace
- System namespaces (
kube-system,kube-public,kube-node-lease,default) cannot be deleted - Verify you have delete permission
Resource quota preventing deployments
Resource quota preventing deployments
- Check current usage against quota limits
- Either increase quota or reduce resource requests
- Use
kubectl describe resourcequota -n <namespace>to see usage
FAQ
What are resource quotas for?
What are resource quotas for?
Resource quotas limit total namespace consumption (CPU, memory, object counts). They prevent a single namespace from consuming all cluster resources.
What are limit ranges for?
What are limit ranges for?
Limit ranges set default resource requests/limits for containers that don’t specify them. They also enforce minimum and maximum constraints.
Can pods in different namespaces communicate?
Can pods in different namespaces communicate?
Yes, by default. Use the DNS name
<service>.<namespace>.svc.cluster.local. Apply NetworkPolicies to restrict cross-namespace traffic.How do I organize namespaces?
How do I organize namespaces?
Common patterns:
- By environment:
dev,staging,prod - By team:
team-a,team-b - By application:
app-frontend,app-backend