namespace
Create a namespace with the specified name.
Kubernetes supports multiple virtual clusters backed by the same physical cluster. These virtual clusters are called namespaces.
Command
$ kubectl create namespace NAME [--dry-run=server|client|none]
Example
Command
$ kubectl create namespace my-namespace
Output
$ kubectl get namespace
NAME STATUS AGE
default Active 41s
my-namespace Active 11s
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified September 23, 2020: docs update (b46eb86)