Okteto namespace operations¶
An Okteto namespace functions as a Kubernetes development environment, often mapped to a specific user or team scope^[400-devops__01-Concepts-of-Software-Development__okteto.md]. These namespaces act as isolated boundaries within the Okteto Cloud, allowing developers to manage resources and deployments independently^[400-devops__01-Concepts-of-Software-Development__okteto.md].
Listing namespaces¶
To view the available namespaces in the current Okteto context, you can use the list command^[400-devops__01-Concepts-of-Software-Development__okteto.md].
okteto ns list
This command outputs a table displaying the Namespace name and its current Status (e.g., Active)^[400-devops__01-Concepts-of-Software-Development__okteto.md]. An asterisk (*) typically appears next to the namespace that is currently selected as the active context^[400-devops__01-Concepts-of-Software-Development__okteto.md].
Deleting namespaces¶
Namespaces can be removed from the cluster using the delete command followed by the namespace name^[400-devops__01-Concepts-of-Software-Development__okteto.md].
okteto ns delete <namespace-name>
Upon successful execution, the CLI will confirm the deletion of the specified namespace^[400-devops__01-Concepts-of-Software-Development__okteto.md].
Related Concepts¶
- Okteto CLI
- Kubernetes namespaces
- [[Context management]]
Sources¶
^[400-devops__01-Concepts-of-Software-Development__okteto.md]