Okteto Namespaces
Namespaces in Okteto offer a flexible way to organize your Development Environments. A Namespace can last for a few weeks for developing a feature, or a couple days for a bug fix. Not only do Namespaces give you an individual separation of context while you are working, but you can also use shared Namespaces to collaborate with you team before anyone pushes to git.
In Okteto, Namespaces are categorized into two types:
-
Personal Namespaces:
Automatically generated for each user, this Namespace is uniquely named after the user's username or email, ensuring a personalized environment. These cannot be deleted, but their resources can be destroyed allowing the Namespace to be reused.
-
Non-Personal Namespaces:
These are additional Namespaces created by users or through automation, facilitating broader project collaboration and management. They may be deleted or transferred to other users.
The Okteto Dashboard enables you to independently create, launch, and share Namespaces for yourself and your team.
Manage your Namespaces
To create a Namespace, go to the Okteto dashboard, click on your Namespace on the left, and at the bottom of the Namespace list select (+) New Namespace.

As a common pattern, you might name your Namespace by feature number, ticket number, or something similar. Development Environments in Namespaces are pulled from git branches, which is why you may want to be running multiple Namespaces at the same time.
The Okteto Admin Dashboard allows you to easily create, sleep, and wake up your Namespaces with a simple click. Specifically, you can use the Sleep and Wake dialogs for controlling your Namespace's state.
If you prefer to use the command line, here are the Namespace management options available:
- Create a Namespace with
okteto namespace create - Set your kubectl configuration to use your Namespace with
okteto kubeconfig - Delete a non-personal Namespace using
okteto namespace delete - Sleep or wake up your Namespace with
okteto namespace sleep [name]andokteto namespace wake [name]commands respectively
Administrators can specify a global, default threshold for automatically sleeping a Namespace in the garbage collection configuration.
Sharing and Collaboration with Namespaces
By default, you'll be the only person with access to your Namespaces. Invite your teammates to enable true real-time collaboration. Each user is able to collaborate together on an application within a Development Environment all before any code is ever pushed. Test better together.
To share a Namespace go to the Okteto dashboard, select the Namespace you want to share and press the Share button in the Namespace menu (you'll find it in the main bar at the top).
In the Share dialog, type the email address of the team members you want to share this Namespace with. Once you press save, Okteto will update the necessary permissions and notify your teammates via email.
Viewing Resource Metrics and Recommendations
Resource Metrics View
With the addition of Resource Manager, there is a new “Metrics” tab in the Okteto Dashboard Namespace view. To access it, navigate to a Namespace, select a Development Environment’s Resource in the sidebar, and click on the Metrics tab below the endpoints. This view provides detailed insights into the resource usage and performance of your Kubernetes workloads.
The Metrics tab is available for core resources, including Deployments, StatefulSets, Jobs, CronJobs, and Pods.
If the Resource Manager is not enabled, the Metrics tab will display basic Storage and Pod metrics, along with a CLI guide to view metrics in real-time.